Class: Saper::Actions::RunRecipeAndSave

Inherits:
Saper::Action show all
Defined in:
lib/saper/actions/run_recipe_and_save.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, #multiple?, #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

Returns:

  • (Boolean)

16
17
18
# File 'lib/saper/actions/run_recipe_and_save.rb', line 16

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