Class: Superhosting::CompositeMapper::Base
- Inherits:
-
Object
- Object
- Superhosting::CompositeMapper::Base
- Defined in:
- lib/superhosting/composite_mapper/base.rb
Instance Attribute Summary collapse
-
#etc ⇒ Object
Returns the value of attribute etc.
-
#lib ⇒ Object
Returns the value of attribute lib.
-
#web ⇒ Object
Returns the value of attribute web.
Instance Method Summary collapse
-
#initialize(etc_mapper:, lib_mapper:, web_mapper:) ⇒ Base
constructor
A new instance of Base.
- #method_missing(m, *args, &block) ⇒ Object
Constructor Details
#initialize(etc_mapper:, lib_mapper:, web_mapper:) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 |
# File 'lib/superhosting/composite_mapper/base.rb', line 6 def initialize(etc_mapper:, lib_mapper:, web_mapper:) self.etc = etc_mapper self.lib = lib_mapper self.web = web_mapper end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
12 13 14 |
# File 'lib/superhosting/composite_mapper/base.rb', line 12 def method_missing(m, *args, &block) self.etc.send(m, *args, &block) end |
Instance Attribute Details
#etc ⇒ Object
Returns the value of attribute etc.
4 5 6 |
# File 'lib/superhosting/composite_mapper/base.rb', line 4 def etc @etc end |
#lib ⇒ Object
Returns the value of attribute lib.
4 5 6 |
# File 'lib/superhosting/composite_mapper/base.rb', line 4 def lib @lib end |
#web ⇒ Object
Returns the value of attribute web.
4 5 6 |
# File 'lib/superhosting/composite_mapper/base.rb', line 4 def web @web end |