Class: NewLine
- Inherits:
-
BasicToken
- Object
- BasicToken
- NewLine
- Defined in:
- lib/rosetta/tokens/new_line.rb
Overview
Handles logic for New Line tokens
Constant Summary
Constants inherited from BasicToken
BasicToken::INLINE_CLASS_NAMES, BasicToken::TOP_LEVEL_CLASS_NAMES
Instance Attribute Summary
Attributes inherited from BasicToken
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ NewLine
constructor
A new instance of NewLine.
- #type ⇒ Object
- #value ⇒ Object
Methods inherited from BasicToken
#accept, #inline?, #node_representation, #to_s
Constructor Details
#initialize ⇒ NewLine
Returns a new instance of NewLine.
11 |
# File 'lib/rosetta/tokens/new_line.rb', line 11 def initialize; end |
Class Method Details
.matches?(text) ⇒ Boolean
7 8 9 |
# File 'lib/rosetta/tokens/new_line.rb', line 7 def self.matches?(text) text == '' end |
Instance Method Details
#type ⇒ Object
13 14 15 |
# File 'lib/rosetta/tokens/new_line.rb', line 13 def type :NEW_LINE end |
#value ⇒ Object
17 18 19 |
# File 'lib/rosetta/tokens/new_line.rb', line 17 def value nil end |