move builtin to register, where it belongs

This commit is contained in:
Torsten Ruger
2015-05-04 11:12:31 +03:00
parent 3659cb4b81
commit 92bbd70c77
7 changed files with 8 additions and 8 deletions

View File

@ -0,0 +1,19 @@
module Builtin
class Array
module ClassMethods
def get context , index = Virtual::Integer
get_function = Virtual::CompiledMethod.new(:get , [ Virtual::Integer] , Virtual::Integer , Virtual::Integer )
return get_function
end
def set context , index = Virtual::Integer , object = Virtual::Reference
set_function = Virtual::CompiledMethod.new(:set , [Virtual::Integer, Virtual::Reference] )
return set_function
end
def push context , object = Virtual::Reference
push_function = Virtual::CompiledMethod.new(:push , [Virtual::Reference] )
return push_function
end
end
extend ClassMethods
end
end