Class: Next
Instance Method Summary collapse
- #copy ⇒ Object
-
#initialize ⇒ Next
constructor
A new instance of Next.
- #to_declaration ⇒ Object
- #to_literal_string ⇒ Object
- #write(tab = 0) ⇒ Object
Constructor Details
#initialize ⇒ Next
Returns a new instance of Next.
4 5 6 |
# File 'lib/core/syntax/syntax.rb', line 4 def initialize super end |
Instance Method Details
#to_declaration ⇒ Object
16 17 18 |
# File 'lib/core/syntax/syntax.rb', line 16 def to_declaration return VariableDeclaration.new(self.class.to_s) end |
#to_literal_string ⇒ Object
20 21 22 |
# File 'lib/core/syntax/syntax.rb', line 20 def to_literal_string return write end |
#write(tab = 0) ⇒ Object
8 9 10 |
# File 'lib/core/syntax/syntax.rb', line 8 def write(tab=0) return ("\t"*tab)+'next' end |