woodruffw / ruby-eval-in

A Ruby interface to https://eval.in/

Home Page:https://rubygems.org/gems/ruby-eval-in

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ruby-eval-in

license Gem Version Build Status

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.

Installation

ruby-eval-in can be installed as a RubyGem:

$ gem install ruby-eval-in

Examples

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

License

ruby-eval-in is licensed under the MIT License.

See the LICENSE file for more details.

About

A Ruby interface to https://eval.in/

https://rubygems.org/gems/ruby-eval-in

License:Other


Languages

Language:Ruby 100.0%