Class: Formatting::Node
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Formatting::Node
- Defined in:
- lib/ntail/node.rb
Instance Method Summary collapse
Instance Method Details
#foreground(string, color) ⇒ Object
8 9 10 |
# File 'lib/ntail/node.rb', line 8 def foreground(string, color) color ? string.foreground(color) : string end |
#value(log_line, color) ⇒ Object
5 6 7 |
# File 'lib/ntail/node.rb', line 5 def value(log_line, color) raise "SubclassResponsibility" # override in node "subclasses"... end |