Class: Processing::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/dxruby_rp5/runner.rb

Constant Summary collapse

DXRP5_HELP_MESSAGE =
<<-EOS
  Version: #{DXRubyRP5::VERSION}

  Usage:
    dxrp5 run path/to/sketch

  Common options:
    --nojruby:  do not use the installed version of jruby, instead use our vendored
          jarred one (required for shader sketches, and some others).

  Examples:
    dxrp5 run my_sketch.rb
    dxrp5 --nojruby run my_sketch.rb

EOS

Instance Method Summary collapse

Instance Method Details

#show_helpObject



27
28
29
# File 'lib/dxruby_rp5/runner.rb', line 27

def show_help
  puts DXRP5_HELP_MESSAGE
end

#show_versionObject



20
21
22
23
24
25
# File 'lib/dxruby_rp5/runner.rb', line 20

def show_version
  puts  <<-EOS
  Ruby-Processing version #{RubyProcessing::VERSION}
  DXRuby_RP5 version #{DXRubyRP5::VERSION}
  EOS
end