Module: PAC
- Defined in:
- lib/pac.rb,
lib/pac/file.rb,
lib/pac/version.rb,
lib/pac/runtimes.rb,
lib/pac/functions.rb,
lib/pac/runtimes/johnson.rb,
lib/pac/runtimes/mustang.rb,
lib/pac/runtimes/rubyracer.rb,
lib/pac/runtimes/rubyrhino.rb
Defined Under Namespace
Modules: Functions, Runtimes Classes: Error, File, ProgramError, RuntimeError, RuntimeUnavailable
Constant Summary collapse
- VERSION =
"1.0.0"
Class Attribute Summary collapse
-
.runtime ⇒ Object
Returns the value of attribute runtime.
Class Method Summary collapse
Class Attribute Details
.runtime ⇒ Object
Returns the value of attribute runtime.
18 19 20 |
# File 'lib/pac.rb', line 18 def runtime @runtime end |
Class Method Details
.load(url, options = {}) ⇒ Object
25 26 27 28 |
# File 'lib/pac.rb', line 25 def load(url, = {}) require "open-uri" File.new(open(url, { :proxy => false }.merge()).read) end |
.read(file) ⇒ Object
30 31 32 |
# File 'lib/pac.rb', line 30 def read(file) File.new(::File.read(file)) end |