Class: Cucumber::Tree::RowStep

Inherits:
BaseStep show all
Defined in:
lib/gems/cucumber-0.1.15/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, #forced_to_pending?, #format_error, #id, #length, new_id!, #outline?, #padding_length, #previous_step, #steps

Constructor Details

#initialize(scenario, step, args) ⇒ RowStep

Returns a new instance of RowStep.



137
138
139
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree/step.rb', line 137

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

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



135
136
137
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree/step.rb', line 135

def keyword
  @keyword
end

Instance Method Details

#lineObject



150
151
152
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree/step.rb', line 150

def line
  @scenario.line
end

#regexp_args_proc(step_mother) ⇒ Object



141
142
143
144
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree/step.rb', line 141

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

#row?Boolean

Returns:

  • (Boolean)


146
147
148
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree/step.rb', line 146

def row?
  true
end