Module: Lyndon
- Defined in:
- lib/lyndon/runtime.rb,
lib/lyndon.rb,
lib/lyndon/repl.rb,
lib/lyndon/ruby.rb,
lib/lyndon/version.rb,
lib/lyndon/delegate.rb
Overview
Defined Under Namespace
Classes: Delegate, Repl, Ruby, Runtime, Version
Constant Summary
collapse
- VERSION =
'0.0.1'
Class Method Summary
collapse
Class Method Details
.eval(js) ⇒ Object
17
18
19
|
# File 'lib/lyndon.rb', line 17
def self.eval(js)
Runtime.new.eval(js)
end
|
.eval_file(file) ⇒ Object
21
22
23
24
|
# File 'lib/lyndon.rb', line 21
def self.eval_file(file)
contents = File.read(File.expand_path(file))
eval(contents)
end
|