Sha256: 0c8525058ded9cdf3240200f7460095377d6ebc193b4ddffa3e81c2c042a0d44

Contents?: true

Size: 442 Bytes

Versions: 9

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: false

# A pry shell for live coding.
# Will start with your sketch.
require_relative 'base'
Processing.load_and_run_sketch

# Custom Exception
class PryException < StandardError
  MESSAGE = "You need to 'jruby -S gem install pry' for 'live' mode".freeze

  def initialize(msg = MESSAGE)
    super
  end
end

raise PryException unless Gem::Specification.find_all_by_name('pry').any?

require 'pry'
Processing.app.pry

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jruby_art-2.6.1 lib/jruby_art/runners/live.rb
jruby_art-2.6.0 lib/jruby_art/runners/live.rb
jruby_art-2.5.1 lib/jruby_art/runners/live.rb
jruby_art-2.5.0 lib/jruby_art/runners/live.rb
jruby_art-2.4.3 lib/jruby_art/runners/live.rb
jruby_art-2.4.2 lib/jruby_art/runners/live.rb
jruby_art-2.4.1 lib/jruby_art/runners/live.rb
jruby_art-2.4.0 lib/jruby_art/runners/live.rb
jruby_art-2.3.0 lib/jruby_art/runners/live.rb