Class: Fuby::Attributes

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/fuby/attributes.rb

Direct Known Subclasses

ClassAttributes, InstanceAttributes

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



6
7
8
# File 'lib/fuby/attributes.rb', line 6

def [] key
  __getobj__.send :"#{ __name__ }_get", key
end

#[]=(key, val) ⇒ Object



10
11
12
# File 'lib/fuby/attributes.rb', line 10

def []= key, val
  __getobj__.send :"#{ __name__ }_set", key, val
end