Sha256: ab68259c12c15e60c9220110a798b53cdb781e2c71fc9639d23198a750a97951
Contents?: true
Size: 579 Bytes
Versions: 3
Compression:
Stored size: 579 Bytes
Contents
require 'lucid/formatter/progress' require 'lucid/step_definition_usage' module Lucid module Formatter class Debug def initialize(runtime, io, options) @io = io @indent = 0 end def respond_to?(*args) true end def method_missing(name, *args) @indent -= 2 if name.to_s =~ /^after/ print(name) @indent += 2 if name.to_s =~ /^before/ end private def print(text) @io.puts "#{indent}#{text}" end def indent (' ' * @indent) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lucid-0.5.1 | lib/lucid/formatter/debug.rb |
lucid-0.4.1 | lib/lucid/formatter/debug.rb |
lucid-0.4.0 | lib/lucid/formatter/debug.rb |