class Object

Public Instance Methods

autocorrect_incompatible_with() click to toggle source
Calls superclass method
# File lib/rubocop-rspec.rb, line 46
def autocorrect_incompatible_with
  super.push(RuboCop::Cop::RSpec::AlignLeftLetBrace)
  .push(RuboCop::Cop::RSpec::AlignRightLetBrace)
end
deep_dup(object) click to toggle source
# File lib/rubocop/rspec/shared_contexts/default_rspec_language_config_context.rb, line 19
def deep_dup(object)
  case object
  when Array
    object.map { |item| deep_dup(item) }
  when Hash
    object.transform_values { |value| deep_dup(value) }
  else
    object # only collections undergo modifications and need duping
  end
end