module Befunger

Example usage:

“‘ code = “>987v>.vnv456< :n>321 ^ _@n” output = Befunger.run(code) “`

Constants

VERSION

Public Class Methods

run(code) click to toggle source

Runs befunge code and returns the output

@param code [String] the code to be run, lines separated with newline characters. @return [String] output of the program

# File lib/befunger.rb, line 15
def self.run(code)
  Befunger::Interpreter.new(code).run
end