class SmashTheState::Operation::Step

Attributes

error_handler[RW]
implementation[R]
name[R]
options[R]

Public Class Methods

new(step_name, options = {}, &block) click to toggle source
# File lib/smash_the_state/operation/step.rb, line 7
def initialize(step_name, options = {}, &block)
  @name           = step_name
  @implementation = block
  @options        = {
    # defaults
    side_effect_free: nil # nil roughly implies unknown
  }.merge(options)
end

Public Instance Methods

dup() click to toggle source
Calls superclass method
# File lib/smash_the_state/operation/step.rb, line 20
def dup
  super
end
side_effect_free?() click to toggle source
# File lib/smash_the_state/operation/step.rb, line 16
def side_effect_free?
  options[:side_effect_free] == true
end