class Cucumber::Formatter::HookQueryVisitor

Attributes

type[R]

Public Class Methods

new(test_step) click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 7
def initialize(test_step)
  @hook = false
  @type = :no_hook
  test_step.source.last.describe_to(self)
end

Public Instance Methods

after_hook(*) click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 25
def after_hook(*)
  @hook = true
  @type = :after
end
after_step_hook(*) click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 30
def after_step_hook(*)
  @hook = true
  @type = :after_step
end
around_hook(*) click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 35
def around_hook(*)
  @hook = true
  @type = :around
end
before_hook(*) click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 20
def before_hook(*)
  @hook = true
  @type = :before
end
hook?() click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 13
def hook?
  @hook
end
step(*) click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 17
def step(*)
end