Class: Sliver::Runner
- Inherits:
-
Object
- Object
- Sliver::Runner
- Defined in:
- lib/sliver/runner.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(klass, environment) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(klass, environment) ⇒ Runner
Returns a new instance of Runner.
4 5 6 7 8 9 |
# File 'lib/sliver/runner.rb', line 4 def initialize(klass, environment) @klass = klass @environment = environment @guarded = false end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/sliver/runner.rb', line 11 def call pass_guards action.call unless skip_action? post_process response.to_a end |