Class: Macros4Cuke::Formatter::ToNull

Inherits:
Object
  • Object
show all
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

Instance Method Details

#implementsObject

Tell which notifications the formatter subscribes to.



15
16
17
# File 'lib/macros4cuke/formatter/to-null.rb', line 15

def implements()
  return Formatter::AllNotifications
end

#on_collection(_, _) ⇒ Object



19
20
21
# File 'lib/macros4cuke/formatter/to-null.rb', line 19

def on_collection(_, _)
  ; # Do nothing
end

#on_collection_end(_) ⇒ Object



23
24
25
# File 'lib/macros4cuke/formatter/to-null.rb', line 23

def on_collection_end(_)
  ; # Do nothing
end

#on_comment(_, _) ⇒ Object



55
56
57
# File 'lib/macros4cuke/formatter/to-null.rb', line 55

def on_comment(_, _)
  ; # Do nothing
end

#on_eol(_) ⇒ Object



59
60
61
# File 'lib/macros4cuke/formatter/to-null.rb', line 59

def on_eol(_)
  ; # Do nothing
end

#on_phrase(_, _, _) ⇒ Object



35
36
37
# File 'lib/macros4cuke/formatter/to-null.rb', line 35

def on_phrase(_, _, _)
  ; # Do nothing
end

#on_placeholder(_, _) ⇒ Object



63
64
65
# File 'lib/macros4cuke/formatter/to-null.rb', line 63

def on_placeholder(_, _)
  ; # Do nothing
end

#on_renderer(_, _) ⇒ Object



39
40
41
# File 'lib/macros4cuke/formatter/to-null.rb', line 39

def on_renderer(_, _)
  ; # Do nothing
end

#on_renderer_end(_) ⇒ Object



43
44
45
# File 'lib/macros4cuke/formatter/to-null.rb', line 43

def on_renderer_end(_)
  ; # Do nothing
end

#on_section(_, _) ⇒ Object



67
68
69
# File 'lib/macros4cuke/formatter/to-null.rb', line 67

def on_section(_, _)
  ; # Do Nothing
end

#on_section_end(_) ⇒ Object



71
72
73
# File 'lib/macros4cuke/formatter/to-null.rb', line 71

def on_section_end(_)
  ; # Do Nothing
end

#on_source(_, _) ⇒ Object



47
48
49
# File 'lib/macros4cuke/formatter/to-null.rb', line 47

def on_source(_, _)
  ; # Do nothing
end

#on_static_text(_, _) ⇒ Object



51
52
53
# File 'lib/macros4cuke/formatter/to-null.rb', line 51

def on_static_text(_, _)
  ; # Do nothing
end

#on_step(_, _) ⇒ Object



27
28
29
# File 'lib/macros4cuke/formatter/to-null.rb', line 27

def on_step(_, _)
  ; # Do nothing
end

#on_step_end(_) ⇒ Object



31
32
33
# File 'lib/macros4cuke/formatter/to-null.rb', line 31

def on_step_end(_)
  ; # Do nothing
end