Class: AttrExtras::AttrValue

Inherits:
Object
  • Object
show all
Defined in:
lib/attr_extras/attr_value.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass, *names) ⇒ AttrValue

Returns a new instance of AttrValue.


2
3
4
# File 'lib/attr_extras/attr_value.rb', line 2

def initialize(klass, *names)
  @klass, @names = klass, names
end

Instance Method Details

#applyObject


9
10
11
12
13
# File 'lib/attr_extras/attr_value.rb', line 9

def apply
  define_readers
  define_equals
  define_hash_identity
end