Module: ANTLR3::Test::Location
- Included in:
- GrammarManager
- Defined in:
- lib/antlr3/test/functional.rb
Instance Attribute Summary collapse
-
#test_path ⇒ Object
Returns the value of attribute test_path.
Instance Method Summary collapse
- #local_path(*parts) ⇒ Object
- #output_directory(name = test_group) ⇒ Object
- #test_directory ⇒ Object
- #test_group ⇒ Object
Instance Attribute Details
#test_path ⇒ Object
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_directory ⇒ Object
22 23 24 |
# File 'lib/antlr3/test/functional.rb', line 22 def test_directory File.dirname( test_path ) end |
#test_group ⇒ Object
18 19 20 |
# File 'lib/antlr3/test/functional.rb', line 18 def test_group File.basename( test_path, '.rb' ) end |