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 end
Public Instance Methods
log(message)
click to toggle source
# File lib/cucumber/formatter/debug.rb, line 11 def log(message) return unless ENV['DEBUG'] @io.puts "* #{message}" end
method_missing(name, *args)
click to toggle source
# File lib/cucumber/formatter/debug.rb, line 20 def method_missing(name, *args) print(name) end
puts(*args)
click to toggle source
# File lib/cucumber/formatter/debug.rb, line 24 def puts(*args) print("puts") end
respond_to?(*args)
click to toggle source
# File lib/cucumber/formatter/debug.rb, line 16 def respond_to?(*args) true end
Private Instance Methods
print(text)
click to toggle source
# File lib/cucumber/formatter/debug.rb, line 30 def print(text) @io.puts text end