Sha256: 2c828445eaff8cfed35779b11ec41cc7ec66ea1bb6e039ee6781eca7e3d815d6

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

require 'psych'

module Processing

  if Processing.exported?
    CONFIG = {'PROCESSING_ROOT' => RP5_ROOT}	  
  end	  

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-processing-2.4.4 lib/ruby-processing/config.rb
ruby-processing-2.4.3 lib/ruby-processing/config.rb
ruby-processing-2.4.2 lib/ruby-processing/config.rb
ruby-processing-2.4.1 lib/ruby-processing/config.rb