Method: Iode.run

Defined in:
lib/iode.rb

.run(source) ⇒ Object

Run a string of iode source code and return a value to Ruby.

Parameters:

  • source (String)

    iode source code

Returns:

  • (Object)

    the return value of the program



38
39
40
# File 'lib/iode.rb', line 38

def run(source)
  Interpreter.new.eval(Reader.new.read(source))
end