Module: RSpec::Core::HashImitatable::ClassMethods

Defined in:
lib/rspec/core/metadata.rb

Instance Method Summary collapse

Instance Method Details

#attr_accessor(*names) ⇒ Object



441
442
443
444
# File 'lib/rspec/core/metadata.rb', line 441

def attr_accessor(*names)
  hash_attribute_names.concat(names)
  super
end

#hash_attribute_namesObject



437
438
439
# File 'lib/rspec/core/metadata.rb', line 437

def hash_attribute_names
  @hash_attribute_names ||= []
end