Class: AdvAccessor::DSL::Access
- Inherits:
-
Object
- Object
- AdvAccessor::DSL::Access
- Includes:
- FromHash
- Defined in:
- lib/adv_accessor/dsl.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &b) ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/adv_accessor/dsl.rb', line 34 def method_missing(sym,*args,&b) if base.respond_to?(sym) base.send(sym,*args,&b) else base.readers.get(sym) end end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
29 30 31 |
# File 'lib/adv_accessor/dsl.rb', line 29 def base @base end |
Instance Method Details
#raw ⇒ Object
31 32 33 |
# File 'lib/adv_accessor/dsl.rb', line 31 def raw value end |