Module: CopHelper Private

Included in:
RSpec::Core::ExampleGroup
Defined in:
sorbet/rbi/shims/rspec.rbi

Overview

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

RuboCop cop specs include this helper at runtime via rubocop/rspec/support.

Instance Method Summary collapse

Instance Method Details

#autocorrect_source(source, file = T.unsafe(nil)) ⇒ String

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • source (String)
  • file (T.untyped) (defaults to: T.unsafe(nil))

Returns:



44
# File 'sorbet/rbi/shims/rspec.rbi', line 44

def autocorrect_source(source, file = T.unsafe(nil)); end

#autocorrect_source_file(source) ⇒ String

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:



47
# File 'sorbet/rbi/shims/rspec.rbi', line 47

def autocorrect_source_file(source); end

#inspect_source(source, file = T.unsafe(nil)) ⇒ Array<T.untyped>

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • source (String)
  • file (T.untyped) (defaults to: T.unsafe(nil))

Returns:



41
# File 'sorbet/rbi/shims/rspec.rbi', line 41

def inspect_source(source, file = T.unsafe(nil)); end

#parse_source(source, file = T.unsafe(nil)) ⇒ T.untyped

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • source (String)
  • file (T.untyped) (defaults to: T.unsafe(nil))

Returns:

  • (T.untyped)


50
# File 'sorbet/rbi/shims/rspec.rbi', line 50

def parse_source(source, file = T.unsafe(nil)); end