2014-06-05 17:17:00 +02:00
|
|
|
module Boot
|
|
|
|
class String
|
|
|
|
module ClassMethods
|
|
|
|
def get context , index = Vm::Integer
|
2014-06-06 20:49:03 +02:00
|
|
|
get_function = Vm::Function.new(:get , Vm::Integer , [ Vm::Integer] , Vm::Integer )
|
2014-06-05 17:17:00 +02:00
|
|
|
return get_function
|
|
|
|
end
|
|
|
|
def set context , index = Vm::Integer , char = Vm::Integer
|
2014-06-06 20:49:03 +02:00
|
|
|
set_function = Vm::Function.new(:set , Vm::Integer ,[Vm::Integer, Vm::Integer] , Vm::Integer )
|
2014-06-05 17:17:00 +02:00
|
|
|
return set_function
|
|
|
|
end
|
|
|
|
end
|
|
|
|
extend ClassMethods
|
|
|
|
end
|
|
|
|
end
|