Class: EvalIn::Result
- Inherits:
-
Object
- Object
- EvalIn::Result
- Defined in:
- lib/eval-in/result.rb
Overview
A representation of a result produced by an eval.in query.
Constant Summary collapse
- LANGS =
The languages supported by eval.in. Any of these keys or values will work for the lang parameter in EvalIn.eval.
{ "c" => "c/gcc-4.9.1", "c++" => "c++/gcc-4.9.1", "coffeescript" => "coffeescript/node-0.10.29-coffee-1.7.1", "fortran" => "fortran/f95-4.4.3", "haskell" => "haskell/hugs98-sep-2006", "io" => "io/io-20131204", "js" => "javascript/node-0.10.29", "lua" => "lua/lua-5.2.3", "ocaml" => "ocaml/ocaml-4.01.0", "php5" => "php/php-5.6.23", "php7" => "php/php-7.0.8", "pascal" => "pascal/fpc-2.6.4", "perl" => "perl/perl-5.20.0", "python" => "python/cpython-3.4.1", "python2" => "python/cpython-2.7.8", "racket" => "racket/racket-6.10.1", "ruby" => "ruby/mri-2.4", "slash" => "slash/slash-head", "nasm" => "assembly/nasm-2.07", }.freeze
Instance Attribute Summary collapse
-
#code ⇒ String
readonly
The program code used in execution.
-
#language ⇒ String
readonly
The expanded language used in execution.
-
#output ⇒ String
readonly
Any output produced by the program.
-
#status ⇒ String
readonly
The program's exit status.
-
#url ⇒ URI
readonly
A permalink to the output webpage.
Instance Attribute Details
#code ⇒ String (readonly)
Returns the program code used in execution.
46 47 48 |
# File 'lib/eval-in/result.rb', line 46 def code @code end |
#language ⇒ String (readonly)
Returns the expanded language used in execution.
41 42 43 |
# File 'lib/eval-in/result.rb', line 41 def language @language end |
#output ⇒ String (readonly)
Returns any output produced by the program.
51 52 53 |
# File 'lib/eval-in/result.rb', line 51 def output @output end |
#status ⇒ String (readonly)
Returns the program's exit status.
56 57 58 |
# File 'lib/eval-in/result.rb', line 56 def status @status end |
#url ⇒ URI (readonly)
Returns a permalink to the output webpage.
61 62 63 |
# File 'lib/eval-in/result.rb', line 61 def url @url end |