Class: Gherkin::Formatter::PrettyFormatter::ColorFormat

Inherits:
Object
  • Object
show all
Includes:
Colors
Defined in:
lib/gherkin/formatter/pretty_formatter.rb

Constant Summary

Constants included from Colors

Colors::ALIASES

Instance Method Summary collapse

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