WARNING: The web service exposed by this gem is no longer online, and this gem is no longer maintained.
A basic Ruby interface to the eval.in online evaluation service.
ruby-eval-in
can be installed as a RubyGem:
$ gem install ruby-eval-in
Making queries is very simple:
require 'eval-in'
result = EvalIn.eval(:ruby, 'puts 10**2')
result.output # => "100\n"
result.status # => "OK (0 sec real, 0 sec wall, 8 MB, 16 syscalls)"
result.url # => #<URI::HTTPS https://eval.in/xxxxxx>
The provided command line script can also be used:
$ eval-in ruby 'puts 10**2'
# 100
ruby-eval-in
is licensed under the MIT License.
See the LICENSE file for more details.