Sha256: e5933b4a6d319e3ebd88d88301afd8a90e8d7e877feb0ccd5ca2f0a48249ade7

Contents?: true

Size: 379 Bytes

Versions: 3

Compression:

Stored size: 379 Bytes

Contents

require 'psych'

module Processing

  if Processing.exported?
    RB_CONFIG = { 'PROCESSING_ROOT' => RP5_ROOT, 'JRUBY' => 'false' }
  end

  unless defined? RB_CONFIG
    begin
      CONFIG_FILE_PATH=File.expand_path('~/.rp5rc')
      RB_CONFIG = (Psych.load_file(CONFIG_FILE_PATH))
    rescue
      warn('WARNING: you need to set PROCESSING_ROOT in ~/.rp5rc')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-processing-2.6.0 lib/ruby-processing/config.rb
ruby-processing-2.5.1 lib/ruby-processing/config.rb
ruby-processing-2.5.0 lib/ruby-processing/config.rb