Class: Rung::Definition::NestedStep

Inherits:
Step
  • Object
show all
Defined in:
lib/rung/definition/nested_step.rb

Overview

Nested step definition value object.

Instance Attribute Summary collapse

Attributes inherited from Step

#action, #from_block

Instance Method Summary collapse

Methods inherited from Step

#fail_fast?, #ignore_result?, #run?

Methods included from ValueObject

#==

Constructor Details

#initialize(action, nested_steps, options = {}) ⇒ NestedStep

Takes the same named-parameters as Step

Parameters:


9
10
11
12
# File 'lib/rung/definition/nested_step.rb', line 9

def initialize(action, nested_steps, options = {})
  super(action, options)
  @nested_steps = nested_steps
end

Instance Attribute Details

#nested_stepsArray<Rung::Definition::Step> (readonly)

Returns:


15
16
17
# File 'lib/rung/definition/nested_step.rb', line 15

def nested_steps
  @nested_steps
end

Instance Method Details

#nested?true

Returns:

  • (true)

18
19
20
# File 'lib/rung/definition/nested_step.rb', line 18

def nested?
  true
end