Module: Recliner::AttributeMethods::ClassMethods

Defined in:
lib/recliner/attribute_methods.rb

Instance Method Summary collapse

Instance Method Details

#define_attribute_methodsObject

Generates all the attribute related methods for defined properties accessors, mutators and query methods.



22
23
24
# File 'lib/recliner/attribute_methods.rb', line 22

def define_attribute_methods
  super(properties.keys)
end

#property(*args) ⇒ Object



26
27
28
29
# File 'lib/recliner/attribute_methods.rb', line 26

def property(*args)
  super
  undefine_attribute_methods
end