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.



32
33
34
35
# File 'lib/cucumber/core/report/summary.rb', line 32

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



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

def method_missing(*)
end

Instance Method Details

#is_step?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/cucumber/core/report/summary.rb', line 37

def is_step?
  @step
end

#stepObject



41
42
43
# File 'lib/cucumber/core/report/summary.rb', line 41

def step(*)
  @step = true
end