Class: Macros4Cuke::Formatter::ToNull
- Inherits:
-
Object
- Object
- Macros4Cuke::Formatter::ToNull
- Defined in:
- lib/macros4cuke/formatter/to-null.rb
Overview
A macro-step formatter that doesn't produce any output. It fully implements the expected interface of formatters but its methods are NOOP (i.e. they do nothing). This formatter can be useful when one wants to discard any formatted output.
Instance Method Summary collapse
-
#implements ⇒ Object
Tell which notifications the formatter subscribes to.
- #on_collection(aLevel, aMacroCollection) ⇒ Object
- #on_collection_end(aLevel) ⇒ Object
- #on_comment(aLevel, aComment) ⇒ Object
- #on_eol(aLevel) ⇒ Object
- #on_phrase(aLevel, aPhraseText, useTable) ⇒ Object
- #on_placeholder(aLevel, aPlaceHolderName) ⇒ Object
- #on_renderer(aLevel, aRenderer) ⇒ Object
- #on_renderer_end(aLevel) ⇒ Object
- #on_section(aLevel, aSectionName) ⇒ Object
- #on_section_end(aLevel) ⇒ Object
- #on_source(aLevel, aSourceText) ⇒ Object
- #on_static_text(aLevel, aText) ⇒ Object
- #on_step(aLevel, aMacroStep) ⇒ Object
- #on_step_end(aLevel) ⇒ Object
Instance Method Details
#implements ⇒ Object
Tell which notifications the formatter subscribes to.
20 21 22 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 20 def implements() return Formatter::AllNotifications end |
#on_collection(aLevel, aMacroCollection) ⇒ Object
24 25 26 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 24 def on_collection(aLevel, aMacroCollection) ; # Do nothing end |
#on_collection_end(aLevel) ⇒ Object
28 29 30 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 28 def on_collection_end(aLevel) ; # Do nothing end |
#on_comment(aLevel, aComment) ⇒ Object
60 61 62 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 60 def on_comment(aLevel, aComment) ; # Do nothing end |
#on_eol(aLevel) ⇒ Object
64 65 66 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 64 def on_eol(aLevel) ; # Do nothing end |
#on_phrase(aLevel, aPhraseText, useTable) ⇒ Object
40 41 42 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 40 def on_phrase(aLevel, aPhraseText, useTable) ; # Do nothing end |
#on_placeholder(aLevel, aPlaceHolderName) ⇒ Object
68 69 70 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 68 def on_placeholder(aLevel, aPlaceHolderName) ; # Do nothing end |
#on_renderer(aLevel, aRenderer) ⇒ Object
44 45 46 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 44 def on_renderer(aLevel, aRenderer) ; # Do nothing end |
#on_renderer_end(aLevel) ⇒ Object
48 49 50 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 48 def on_renderer_end(aLevel) ; # Do nothing end |
#on_section(aLevel, aSectionName) ⇒ Object
72 73 74 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 72 def on_section(aLevel, aSectionName) ; # Do Nothing end |
#on_section_end(aLevel) ⇒ Object
76 77 78 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 76 def on_section_end(aLevel) ; # Do Nothing end |
#on_source(aLevel, aSourceText) ⇒ Object
52 53 54 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 52 def on_source(aLevel, aSourceText) ; # Do nothing end |
#on_static_text(aLevel, aText) ⇒ Object
56 57 58 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 56 def on_static_text(aLevel, aText) ; # Do nothing end |
#on_step(aLevel, aMacroStep) ⇒ Object
32 33 34 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 32 def on_step(aLevel, aMacroStep) ; # Do nothing end |
#on_step_end(aLevel) ⇒ Object
36 37 38 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 36 def on_step_end(aLevel) ; # Do nothing end |