Class: Fitnesse
- Inherits:
-
Object
- Object
- Fitnesse
- Defined in:
- lib/fitnesse.rb
Instance Attribute Summary collapse
-
#argv ⇒ Object
readonly
Returns the value of attribute argv.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Fitnesse
constructor
A new instance of Fitnesse.
- #jar_path ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(argv) ⇒ Fitnesse
Returns a new instance of Fitnesse.
3 4 5 |
# File 'lib/fitnesse.rb', line 3 def initialize(argv) @argv = argv end |
Instance Attribute Details
#argv ⇒ Object (readonly)
Returns the value of attribute argv.
2 3 4 |
# File 'lib/fitnesse.rb', line 2 def argv @argv end |
Instance Method Details
#jar_path ⇒ Object
11 12 13 14 |
# File 'lib/fitnesse.rb', line 11 def jar_path dir = File.dirname(__FILE__) File.("#{dir}/../core/fitnesse.jar") end |
#start ⇒ Object
7 8 9 |
# File 'lib/fitnesse.rb', line 7 def start system "java -cp #{jar_path} fitnesse.FitNesse #{argv.join(' ')}" end |