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 6 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 24 def after_hook(*) @hook = true @type = :after end
after_step_hook(*)
click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 29 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 34 def around_hook(*) @hook = true @type = :around end
before_hook(*)
click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 19 def before_hook(*) @hook = true @type = :before end
hook?()
click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 12 def hook? @hook end
step(*)
click to toggle source
# File lib/cucumber/formatter/hook_query_visitor.rb, line 16 def step(*) end