Sha256: 48015daa1148ea47b593fd8a0d1c69abf3e7b0d557d7db064abd67ed6dee43bb
Contents?: true
Size: 1.51 KB
Versions: 7
Compression:
Stored size: 1.51 KB
Contents
# File: to-null.rb require_relative 'all-notifications' module Macros4Cuke # Module used as a namespace # Namespace for all formatters of MacroCollection and MacroStep objects module Formatter # 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. class ToNull # Tell which notifications the formatter subscribes to. def implements() return Formatter::AllNotifications end def on_collection(_, _) ; # Do nothing end def on_collection_end(_) ; # Do nothing end def on_step(_, _) ; # Do nothing end def on_step_end(_) ; # Do nothing end def on_phrase(_, _, _) ; # Do nothing end def on_renderer(_, _) ; # Do nothing end def on_renderer_end(_) ; # Do nothing end def on_source(_, _) ; # Do nothing end def on_static_text(_, _) ; # Do nothing end def on_comment(_, _) ; # Do nothing end def on_eol(_) ; # Do nothing end def on_placeholder(_, _) ; # Do nothing end def on_section(_, _) ; # Do Nothing end def on_section_end(_) ; # Do Nothing end end # class end # module end # module # End of file
Version data entries
7 entries across 7 versions & 1 rubygems