Class: Stellr::Strategies::Base
- Inherits:
-
Object
- Object
- Stellr::Strategies::Base
- Includes:
- Utils::Shutdown
- Defined in:
- lib/stellr/strategies/base.rb
Instance Method Summary collapse
-
#initialize(collection, options) ⇒ Base
constructor
A new instance of Base.
- #method_missing(name, *args) ⇒ Object
Methods included from Utils::Shutdown
Constructor Details
#initialize(collection, options) ⇒ Base
Returns a new instance of Base.
6 7 8 9 |
# File 'lib/stellr/strategies/base.rb', line 6 def initialize( collection, ) @collection = collection @options = .dup end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
11 12 13 |
# File 'lib/stellr/strategies/base.rb', line 11 def method_missing(name, *args) @collection.send name, *args end |