class AttrObject::Manager
Attributes
attributes[R]
Public Class Methods
new()
click to toggle source
# File lib/attr_object/manager.rb, line 5 def initialize @attributes = {} end
Public Instance Methods
get(attribute)
click to toggle source
# File lib/attr_object/manager.rb, line 13 def get attribute return if @attributes[attribute].nil? @attributes[attribute].cast end
set(klass, attribute, value)
click to toggle source
# File lib/attr_object/manager.rb, line 9 def set klass, attribute, value @attributes[attribute] = Value.new klass, value end