Class: OpenStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/smeagol/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



4
5
6
# File 'lib/smeagol/core_ext.rb', line 4

def [](key)
  __send__(key)
end

#[]=(key, value) ⇒ Object



8
9
10
# File 'lib/smeagol/core_ext.rb', line 8

def []=(key, value)
  __send__("#{key}=", value)
end