module PoroProperties::ClassMethods
Attributes
properties_names[RW]
Public Instance Methods
properties(*names)
click to toggle source
# File lib/poro_properties.rb, line 17 def properties(*names) attr_accessor(*names) @properties_names ||= [] @properties_names += names end
property(name)
click to toggle source
# File lib/poro_properties.rb, line 23 def property(name) attr_accessor(name) @properties_names ||= [] @properties_names << name end