Class: Cucumber::Formatter::Debug
- Defined in:
- lib/cucumber/formatter/debug.rb
Instance Method Summary collapse
-
#initialize(runtime, io, options) ⇒ Debug
constructor
A new instance of Debug.
- #method_missing(name, *args) ⇒ Object
- #respond_to?(*args) ⇒ Boolean
Constructor Details
#initialize(runtime, io, options) ⇒ Debug
Returns a new instance of Debug.
7 8 9 10 |
# File 'lib/cucumber/formatter/debug.rb', line 7 def initialize(runtime, io, ) @io = io @indent = 0 end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
16 17 18 19 20 |
# 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 |
Instance Method Details
#respond_to?(*args) ⇒ Boolean
12 13 14 |
# File 'lib/cucumber/formatter/debug.rb', line 12 def respond_to?(*args) true end |