Class: Cucumber::Formatter::Debug
- Inherits:
-
Object
- Object
- Cucumber::Formatter::Debug
show all
- Defined in:
- lib/cucumber/formatter/debug.rb
Instance Method Summary
collapse
Constructor Details
#initialize(step_mother, io, options) ⇒ Debug
7
8
9
10
|
# File 'lib/cucumber/formatter/debug.rb', line 7
def initialize(step_mother, io, options)
@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
|