Class: Saper::Actions::RunRecipe

Inherits:
Saper::Action show all
Defined in:
lib/saper/actions/run_recipe.rb

Constant Summary

Constants inherited from Saper::Action

Saper::Action::INPUT_TYPES

Instance Attribute Summary

Attributes inherited from Saper::Action

#arguments, #options

Instance Method Summary collapse

Methods inherited from Saper::Action

[], accepts, accepts?, #args, argument, arguments, #block, inherited, #initialize, #name, #namespace, new, output_for, #output_for, returns_multiple_items!, returns_multiple_items?, #run, run, #serialize, subclasses, #to_json, #to_string, type, unserialize

Constructor Details

This class inherits a constructor from Saper::Action

Instance Method Details

#accepts?(type) ⇒ Boolean

Overrides default logic


13
14
15
# File 'lib/saper/actions/run_recipe.rb', line 13

def accepts?(type)
  args.first.accepts?(type)
end

#multiple?Boolean

Overrides default logic


18
19
20
# File 'lib/saper/actions/run_recipe.rb', line 18

def multiple?
  args.first.multiple?
end