Class: LLT::Token::Filler

Inherits:
LLT::Token show all
Defined in:
lib/llt/token/filler.rb

Instance Attribute Summary

Attributes inherited from LLT::Token

#functions, #special_roles

Instance Method Summary collapse

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

Returns:

  • (Boolean)


17
18
19
# File 'lib/llt/token/filler.rb', line 17

def empty?
  false
end

#inspectObject



26
27
28
# File 'lib/llt/token/filler.rb', line 26

def inspect
  "#{"Filler token".blue}: #{@string}"
end

#set_functionsObject



22
23
24
# File 'lib/llt/token/filler.rb', line 22

def set_functions
  [:filler]
end