Class: TokyoMetro::Factory::Decorate::AppSubDecorator

Inherits:
Object
  • Object
show all
Defined in:
lib/tokyo_metro/factory/decorate/app_sub_decorator.rb

Direct Known Subclasses

InDocument

Defined Under Namespace

Classes: InDocument

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#decoratorObject (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

#objectObject



9
10
11
# File 'lib/tokyo_metro/factory/decorate/app_sub_decorator.rb', line 9

def object
  @decorator.object
end