fOOrth/demo.rb
2016-02-24 22:00:12 -05:00

24 lines
556 B
Ruby

# coding: utf-8
#This file contains a minimum host environment for running the fOOrth system.
if ARGV[0] == 'local'
require_relative 'lib/fOOrth'
puts "\nOption(local) Loaded fOOrth from the local code folder."
elsif defined?(XfOOrth)
puts "\nThe fOOrth system is already loaded."
else
begin
require 'fOOrth'
puts "\nLoaded fOOrth from the system gem."
rescue LoadError
require_relative 'lib/fOOrth'
puts "\nLoaded fOOrth from the local code folder."
end
end
puts
if __FILE__==$0
XfOOrth::main
end