Class: TokyoMetro::Factory::Decorate::AppSubDecorator
- Inherits:
-
Object
- Object
- TokyoMetro::Factory::Decorate::AppSubDecorator
- Defined in:
- lib/tokyo_metro/factory/decorate/app_sub_decorator.rb
Direct Known Subclasses
Defined Under Namespace
Classes: InDocument
Instance Attribute Summary collapse
-
#decorator ⇒ Object
readonly
Returns the value of attribute decorator.
Instance Method Summary collapse
-
#initialize(decorator) ⇒ AppSubDecorator
constructor
A new instance of AppSubDecorator.
- #method_missing(method_name, *args) ⇒ Object
- #object ⇒ Object
Constructor Details
#initialize(decorator) ⇒ AppSubDecorator
Returns a new instance of AppSubDecorator.
3 4 5 |
# File 'lib/tokyo_metro/factory/decorate/app_sub_decorator.rb', line 3 def initialize( decorator ) @decorator = decorator end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
13 14 15 |
# File 'lib/tokyo_metro/factory/decorate/app_sub_decorator.rb', line 13 def method_missing( method_name , *args ) @decorator.send( method_name , *args ) end |
Instance Attribute Details
#decorator ⇒ Object (readonly)
Returns the value of attribute decorator.
7 8 9 |
# File 'lib/tokyo_metro/factory/decorate/app_sub_decorator.rb', line 7 def decorator @decorator end |
Instance Method Details
#object ⇒ Object
9 10 11 |
# File 'lib/tokyo_metro/factory/decorate/app_sub_decorator.rb', line 9 def object @decorator.object end |