class Teacher::Base
Attributes
scope[RW]
Public Class Methods
new()
click to toggle source
# File lib/teacher.rb, line 17 def initialize @parser = TeacherParser.new end
Public Instance Methods
parse(string)
click to toggle source
# File lib/teacher.rb, line 27 def parse(string) @parser.parse(string) end
run(string)
click to toggle source
# File lib/teacher.rb, line 21 def run(string) @scope = TopLevel.new @tree = parse(string) @tree.eval(scope) end