Module: Ichabod
- Defined in:
- lib/ichabod/runtime.rb,
lib/ichabod.rb,
lib/ichabod/repl.rb,
lib/ichabod/tests.rb,
lib/ichabod/version.rb,
lib/ichabod/delegate/ui.rb,
lib/ichabod/delegate/load.rb,
lib/ichabod/script_object/ruby.rb,
lib/ichabod/script_object/ichabod.rb
Overview
Defined Under Namespace
Modules: Delegate, ScriptObject, Tests
Classes: Repl, Runtime, Version
Constant Summary
collapse
- JS_PATH =
File.join(File.dirname(__FILE__), "js")
- VERSION =
'0.0.2'
Class Method Summary
collapse
Class Method Details
.eval(js) ⇒ Object
22
23
24
|
# File 'lib/ichabod.rb', line 22
def self.eval(js)
Runtime.new.eval(js)
end
|
.eval_file(file) ⇒ Object
26
27
28
29
|
# File 'lib/ichabod.rb', line 26
def self.eval_file(file)
contents = File.read(File.expand_path(file))
eval(contents)
end
|
.open(url) ⇒ Object
35
36
37
|
# File 'lib/ichabod.rb', line 35
def self.open(url)
Runtime.new.open(url).run
end
|
.parse(dom) ⇒ Object
31
32
33
|
# File 'lib/ichabod.rb', line 31
def self.parse(dom)
Runtime.new(:dom => dom).run
end
|