class ANTLR3::DOT::Context

Public Class Methods

new( template, vars = {} ) click to toggle source
# File lib/antlr3/dot.rb, line 59
def initialize( template, vars = {} )
  @__template__ = template
  vars.each do |var, value|
    self[ var ] = value
  end
end

Public Instance Methods

[]( var ) click to toggle source
# File lib/antlr3/dot.rb, line 55
def []( var )
  instance_variable_get( :"@#{ var }" )
end
[]=( var, value ) click to toggle source
# File lib/antlr3/dot.rb, line 52
def []=( var, value )
  instance_variable_set( :"@#{ var }", value )
end
to_s() click to toggle source
# File lib/antlr3/dot.rb, line 66
def to_s
  @__template__.result( binding )
end