class Apricot::Generator

Attributes

scopes[R]
tail_position[RW]
tail_position?[RW]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/apricot/generator.rb, line 8
def initialize
  super
  @scopes = []
  @tail_position = false
end

Public Instance Methods

compile_error(msg) click to toggle source
# File lib/apricot/generator.rb, line 18
def compile_error(msg)
  raise CompileError.new(file, line, msg)
end
scope() click to toggle source
# File lib/apricot/generator.rb, line 14
def scope
  @scopes.last
end