Class: Shrek::Runner
- Inherits:
-
Object
- Object
- Shrek::Runner
- Defined in:
- lib/shrek/runner.rb
Instance Attribute Summary collapse
-
#layers ⇒ Object
readonly
Returns the value of attribute layers.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(*layers, **options) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(*layers, **options) ⇒ Runner
Returns a new instance of Runner.
7 8 9 10 |
# File 'lib/shrek/runner.rb', line 7 def initialize(*layers, **) @options = parse_layers!(*layers) end |
Instance Attribute Details
#layers ⇒ Object (readonly)
Returns the value of attribute layers.
5 6 7 |
# File 'lib/shrek/runner.rb', line 5 def layers @layers end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/shrek/runner.rb', line 5 def @options end |
Instance Method Details
#call(*args) ⇒ Object
12 13 14 |
# File 'lib/shrek/runner.rb', line 12 def call(*args) chain.call(*args) end |