class Cucumber::Formatter::Debug
Public Class Methods
new(runtime, io, options)
click to toggle source
# File lib/cucumber/formatter/debug.rb, line 7 def initialize(runtime, io, options) @io = io @indent = 0 end
Public Instance Methods
method_missing(name, *args)
click to toggle source
# File lib/cucumber/formatter/debug.rb, line 16 def method_missing(name, *args) @indent -= 2 if name.to_s =~ /^after/ print(name) @indent += 2 if name.to_s =~ /^before/ end
respond_to?(*args)
click to toggle source
# File lib/cucumber/formatter/debug.rb, line 12 def respond_to?(*args) true end
Private Instance Methods
indent()
click to toggle source
# File lib/cucumber/formatter/debug.rb, line 28 def indent (' ' * @indent) end
print(text)
click to toggle source
# File lib/cucumber/formatter/debug.rb, line 24 def print(text) @io.puts "#{indent}#{text}" end