Class: Shrek::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/shrek/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  @options = options
  parse_layers!(*layers)
end

Instance Attribute Details

#layersObject (readonly)

Returns the value of attribute layers.



5
6
7
# File 'lib/shrek/runner.rb', line 5

def layers
  @layers
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/shrek/runner.rb', line 5

def options
  @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