rubyx/lib/register/builtin/object.rb

22 lines
453 B
Ruby
Raw Normal View History

module Register
module Builtin
class Object
module ClassMethods
# main entry point, ie __init__ calls this
# defined here as empty, to be redefined
def main context
2015-10-22 17:16:29 +02:00
function = MethodSource.create_method(:Object, :Integer , :main , [])
return function
end
end
extend ClassMethods
end
end
end
2014-08-28 15:44:27 +02:00
require_relative "integer"
2014-09-10 20:35:52 +02:00
require_relative "kernel"
require_relative "word"