Class: Gherkin::Formatter::PrettyFormatter::ColorFormat
- Inherits:
-
Object
- Object
- Gherkin::Formatter::PrettyFormatter::ColorFormat
- Includes:
- Colors
- Defined in:
- lib/gherkin/formatter/pretty_formatter.rb
Constant Summary
Constants included from Colors
Instance Method Summary collapse
-
#initialize(status) ⇒ ColorFormat
constructor
A new instance of ColorFormat.
- #text(text) ⇒ Object
Methods included from Colors
define_grey, define_real_grey, #grey
Constructor Details
#initialize(status) ⇒ ColorFormat
Returns a new instance of ColorFormat.
112 113 114 |
# File 'lib/gherkin/formatter/pretty_formatter.rb', line 112 def initialize(status) @status = status end |
Instance Method Details
#text(text) ⇒ Object
116 117 118 |
# File 'lib/gherkin/formatter/pretty_formatter.rb', line 116 def text(text) self.__send__(@status, text) end |