Class: JRubyCommand
- Inherits:
-
Object
- Object
- JRubyCommand
- Defined in:
- lib/jruby_art/launcher.rb
Overview
Wrap creation of jruby command string as a class
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
-
#runner ⇒ Object
readonly
Returns the value of attribute runner.
Instance Method Summary collapse
- #cmd ⇒ Object
-
#initialize(runner, args, filename) ⇒ JRubyCommand
constructor
A new instance of JRubyCommand.
Constructor Details
#initialize(runner, args, filename) ⇒ JRubyCommand
Returns a new instance of JRubyCommand.
51 52 53 54 |
# File 'lib/jruby_art/launcher.rb', line 51 def initialize(runner, args, filename) @runner, @args, @filename = runner, args, filename @opts = JRubyOpts.new.opts end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
50 51 52 |
# File 'lib/jruby_art/launcher.rb', line 50 def args @args end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
50 51 52 |
# File 'lib/jruby_art/launcher.rb', line 50 def filename @filename end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
50 51 52 |
# File 'lib/jruby_art/launcher.rb', line 50 def opts @opts end |
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
50 51 52 |
# File 'lib/jruby_art/launcher.rb', line 50 def runner @runner end |
Instance Method Details
#cmd ⇒ Object
56 57 58 |
# File 'lib/jruby_art/launcher.rb', line 56 def cmd ['jruby', opts, runner, filename, args].flatten end |