Class: Cucumber::Tree::RowStep

Inherits:
BaseStep
  • Object
show all
Defined in:
lib/cucumber/tree/step.rb

Constant Summary

Constants inherited from BaseStep

BaseStep::PENDING_ADJUSTMENT, BaseStep::REGULAR_ADJUSTMENT

Instance Attribute Summary collapse

Attributes inherited from BaseStep

#error, #scenario

Instance Method Summary collapse

Methods inherited from BaseStep

#actual_keyword, #execute_in, #file, #format_error, #id, #length, new_id!, #padding_length, #previous_step, #steps

Constructor Details

#initialize(scenario, step, args) ⇒ RowStep

Returns a new instance of RowStep.



114
115
116
# File 'lib/cucumber/tree/step.rb', line 114

def initialize(scenario, step, args)
  @scenario, @step, @args = scenario, step, args
end

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



112
113
114
# File 'lib/cucumber/tree/step.rb', line 112

def keyword
  @keyword
end

Instance Method Details

#lineObject



127
128
129
# File 'lib/cucumber/tree/step.rb', line 127

def line
  @scenario.line
end

#regexp_args_proc(step_mother) ⇒ Object



118
119
120
121
# File 'lib/cucumber/tree/step.rb', line 118

def regexp_args_proc(step_mother)
  regexp, _, proc = @step.regexp_args_proc(step_mother)
  [regexp, @args, proc]
end

#row?Boolean

Returns:

  • (Boolean)


123
124
125
# File 'lib/cucumber/tree/step.rb', line 123

def row?
  true
end