Class: Cucumber::Core::Report::StepQueryVisitor

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/report/summary.rb

Instance Method Summary collapse

Constructor Details

#initialize(test_step) ⇒ StepQueryVisitor

Returns a new instance of StepQueryVisitor.



43
44
45
46
# File 'lib/cucumber/core/report/summary.rb', line 43

def initialize(test_step)
  @step = false
  test_step.source.last.describe_to(self)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject



56
57
# File 'lib/cucumber/core/report/summary.rb', line 56

def method_missing(*)
end

Instance Method Details

#is_step?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/cucumber/core/report/summary.rb', line 48

def is_step?
  @step
end

#stepObject



52
53
54
# File 'lib/cucumber/core/report/summary.rb', line 52

def step(*)
  @step = true
end