class ANTLR3::Test::Functional
Public Class Methods
inherited( klass )
click to toggle source
Calls superclass method
# File lib/antlr3/test/functional.rb, line 158 def self.inherited( klass ) super klass.test_path = call_stack[ 0 ].file end
Public Instance Methods
compile_and_load( grammar, options = {} )
click to toggle source
# File lib/antlr3/test/functional.rb, line 183 def compile_and_load( grammar, options = {} ) self.class.compile( grammar, options ) end
inline_grammar( source )
click to toggle source
# File lib/antlr3/test/functional.rb, line 175 def inline_grammar( source ) call = call_stack.find { |call| call.file != __FILE__ } grammar = Grammar.inline source, :output_directory => output_directory, :file => call.file, :line => call.line end
local_path( *args )
click to toggle source
# File lib/antlr3/test/functional.rb, line 163 def local_path( *args ) self.class.local_path( *args ) end
output_directory()
click to toggle source
# File lib/antlr3/test/functional.rb, line 171 def output_directory self.class.output_directory end
test_path()
click to toggle source
# File lib/antlr3/test/functional.rb, line 167 def test_path self.class.test_path end