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.
54 55 56 57 58 59 |
# File 'lib/jruby_art/launcher.rb', line 54 def initialize(runner, args, filename) @runner = runner @args = args @filename = filename @opts = JRubyOpts.new.opts end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
53 54 55 |
# File 'lib/jruby_art/launcher.rb', line 53 def args @args end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
53 54 55 |
# File 'lib/jruby_art/launcher.rb', line 53 def filename @filename end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
53 54 55 |
# File 'lib/jruby_art/launcher.rb', line 53 def opts @opts end |
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
53 54 55 |
# File 'lib/jruby_art/launcher.rb', line 53 def runner @runner end |
Instance Method Details
#cmd ⇒ Object
61 62 63 |
# File 'lib/jruby_art/launcher.rb', line 61 def cmd ['jruby', opts, runner, filename, args].flatten end |