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(_, _) ⇒ Object
- #on_collection_end(_) ⇒ Object
- #on_comment(_, _) ⇒ Object
- #on_eol(_) ⇒ Object
- #on_phrase(_, _, _) ⇒ Object
- #on_placeholder(_, _) ⇒ Object
- #on_renderer(_, _) ⇒ Object
- #on_renderer_end(_) ⇒ Object
- #on_section(_, _) ⇒ Object
- #on_section_end(_) ⇒ Object
- #on_source(_, _) ⇒ Object
- #on_static_text(_, _) ⇒ Object
- #on_step(_, _) ⇒ Object
- #on_step_end(_) ⇒ Object
Instance Method Details
#implements ⇒ Object
Tell which notifications the formatter subscribes to.
17 18 19 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 17 def implements() return Formatter::AllNotifications end |
#on_collection(_, _) ⇒ Object
21 22 23 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 21 def on_collection(_, _) # Do nothing end |
#on_collection_end(_) ⇒ Object
25 26 27 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 25 def on_collection_end(_) # Do nothing end |
#on_comment(_, _) ⇒ Object
57 58 59 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 57 def on_comment(_, _) # Do nothing end |
#on_eol(_) ⇒ Object
61 62 63 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 61 def on_eol(_) # Do nothing end |
#on_phrase(_, _, _) ⇒ Object
37 38 39 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 37 def on_phrase(_, _, _) # Do nothing end |
#on_placeholder(_, _) ⇒ Object
65 66 67 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 65 def on_placeholder(_, _) # Do nothing end |
#on_renderer(_, _) ⇒ Object
41 42 43 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 41 def on_renderer(_, _) # Do nothing end |
#on_renderer_end(_) ⇒ Object
45 46 47 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 45 def on_renderer_end(_) # Do nothing end |
#on_section(_, _) ⇒ Object
69 70 71 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 69 def on_section(_, _) # Do Nothing end |
#on_section_end(_) ⇒ Object
73 74 75 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 73 def on_section_end(_) # Do Nothing end |
#on_source(_, _) ⇒ Object
49 50 51 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 49 def on_source(_, _) # Do nothing end |
#on_static_text(_, _) ⇒ Object
53 54 55 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 53 def on_static_text(_, _) # Do nothing end |
#on_step(_, _) ⇒ Object
29 30 31 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 29 def on_step(_, _) # Do nothing end |
#on_step_end(_) ⇒ Object
33 34 35 |
# File 'lib/macros4cuke/formatter/to-null.rb', line 33 def on_step_end(_) # Do nothing end |