class Rbfunge::Base
creates the interpreter and loads programs from files
Public Class Methods
new()
click to toggle source
initialize the class
# File lib/rbfunge.rb, line 8 def initialize @interpreter = Interpreter.new end
Public Instance Methods
load_file(file_path)
click to toggle source
load a file and interpret it currently, this is assuming Befunge-93 80x25 layout
# File lib/rbfunge.rb, line 14 def load_file(file_path) code = File.open(file_path) { |f| f.read } @interpreter.run(code) end