Module: EvalIn
- Defined in:
- lib/eval-in.rb,
lib/eval-in/result.rb,
lib/eval-in/exceptions.rb
Overview
The primary namespace.
Defined Under Namespace
Classes: BadLanguageError, ConnectionError, EmptyCodeError, EvalInError, Result
Constant Summary collapse
- VERSION =
The library's current version.
"0.0.8"
Class Method Summary collapse
-
.eval(lang, code) ⇒ EvalIn::Result
Evaluate some code in a given language.
Class Method Details
.eval(lang, code) ⇒ EvalIn::Result
Evaluate some code in a given language.
19 20 21 |
# File 'lib/eval-in.rb', line 19 def self.eval(lang, code) EvalIn::Result.new(lang.to_s.downcase, code) end |