class Macros4Cuke::Formatter::ToNull
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.
Public Instance Methods
implements()
click to toggle source
Tell which notifications the formatter subscribes to.
# File lib/macros4cuke/formatter/to-null.rb, line 17 def implements() return Formatter::AllNotifications end
on_collection(_, _)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 21 def on_collection(_, _) # Do nothing end
on_collection_end(_)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 25 def on_collection_end(_) # Do nothing end
on_comment(_, _)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 57 def on_comment(_, _) # Do nothing end
on_eol(_)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 61 def on_eol(_) # Do nothing end
on_phrase(_, _, _)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 37 def on_phrase(_, _, _) # Do nothing end
on_placeholder(_, _)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 65 def on_placeholder(_, _) # Do nothing end
on_renderer(_, _)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 41 def on_renderer(_, _) # Do nothing end
on_renderer_end(_)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 45 def on_renderer_end(_) # Do nothing end
on_section(_, _)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 69 def on_section(_, _) # Do Nothing end
on_section_end(_)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 73 def on_section_end(_) # Do Nothing end
on_source(_, _)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 49 def on_source(_, _) # Do nothing end
on_static_text(_, _)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 53 def on_static_text(_, _) # Do nothing end
on_step(_, _)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 29 def on_step(_, _) # Do nothing end
on_step_end(_)
click to toggle source
# File lib/macros4cuke/formatter/to-null.rb, line 33 def on_step_end(_) # Do nothing end