Class: Next

Inherits:
Object show all
Includes:
Code
Defined in:
lib/core/syntax/syntax.rb

Instance Method Summary collapse

Constructor Details

#initializeNext

Returns a new instance of Next.



4
5
6
# File 'lib/core/syntax/syntax.rb', line 4

def initialize
  super
end

Instance Method Details

#copyObject



12
13
14
# File 'lib/core/syntax/syntax.rb', line 12

def copy
  return Next.new
end

#to_declarationObject



16
17
18
# File 'lib/core/syntax/syntax.rb', line 16

def to_declaration
  return VariableDeclaration.new(self.class.to_s)
end

#to_literal_stringObject



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