Class: LLT::Token::Filler
- Inherits:
-
LLT::Token
- Object
- LLT::Token
- LLT::Token::Filler
- Defined in:
- lib/llt/token/filler.rb
Instance Attribute Summary
Attributes inherited from LLT::Token
Instance Method Summary collapse
- #add(type) ⇒ Object
-
#empty? ⇒ Boolean
(also: #no_forms?)
cannot hold anything atm, is therefore never really empty.
- #inspect ⇒ Object
- #set_functions ⇒ Object
Methods inherited from LLT::Token
#==, #add_form, #add_forms, #has_special_role?, #initialize, #set_special_role, #use
Constructor Details
This class inherits a constructor from LLT::Token
Instance Method Details
#add(type) ⇒ Object
6 7 8 9 10 |
# File 'lib/llt/token/filler.rb', line 6 def add(type) case type when :name then add_name_form end end |
#empty? ⇒ Boolean Also known as: no_forms?
cannot hold anything atm, is therefore never really empty
17 18 19 |
# File 'lib/llt/token/filler.rb', line 17 def empty? false end |
#inspect ⇒ Object
26 27 28 |
# File 'lib/llt/token/filler.rb', line 26 def inspect "#{"Filler token".blue}: #{@string}" end |
#set_functions ⇒ Object
22 23 24 |
# File 'lib/llt/token/filler.rb', line 22 def set_functions [:filler] end |