module SimpleObjects::Attributes::ClassMethods
Attributes
attributes[R]
Public Instance Methods
attribute(attribute, opts = {})
click to toggle source
# File lib/simple_objects/attributes.rb, line 15 def attribute(attribute, opts = {}) @attributes ||= {} attr = Attribute.new(attribute, opts) @attributes[attribute] = attr send(:attr_reader, attribute) end