Class: OpenStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/refuge/utils/ostruct.rb

Instance Method Summary collapse

Instance Method Details

#[](msg) ⇒ Object



22
23
24
# File 'lib/refuge/utils/ostruct.rb', line 22

def [] ( msg )
    self.__send__ msg
end

#[]=(msg, *args) ⇒ Object



26
27
28
# File 'lib/refuge/utils/ostruct.rb', line 26

def []= ( msg, *args )
    self.__send__ "#{ msg }=", *args
end