Module: ANTLR3::Test::Location

Included in:
GrammarManager
Defined in:
lib/antlr3/test/functional.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#test_pathObject

Returns the value of attribute test_path


16
17
18
# File 'lib/antlr3/test/functional.rb', line 16

def test_path
  @test_path
end

Instance Method Details

#local_path(*parts) ⇒ Object


26
27
28
# File 'lib/antlr3/test/functional.rb', line 26

def local_path( *parts )
  File.join( test_directory, *parts )
end

#output_directory(name = test_group) ⇒ Object


30
31
32
# File 'lib/antlr3/test/functional.rb', line 30

def output_directory( name = test_group )
  local_path( name )
end

#test_directoryObject


22
23
24
# File 'lib/antlr3/test/functional.rb', line 22

def test_directory
  File.dirname( test_path )
end

#test_groupObject


18
19
20
# File 'lib/antlr3/test/functional.rb', line 18

def test_group
  File.basename( test_path, '.rb' )
end