rubyx/lib/boot/string.rb

16 lines
553 B
Ruby
Raw Normal View History

module Boot
class String
module ClassMethods
2014-06-26 17:52:15 +03:00
def get context , index = Virtual::Integer
2014-07-16 19:24:41 +03:00
get_function = Virtual::MethodDefinition.new(:get , [ Virtual::Integer] , Virtual::Integer , Virtual::Integer )
return get_function
end
2014-06-26 17:52:15 +03:00
def set context , index = Virtual::Integer , char = Virtual::Integer
2014-07-16 19:24:41 +03:00
set_function = Virtual::MethodDefinition.new(:set , [Virtual::Integer, Virtual::Integer] , Virtual::Integer ,Virtual::Integer )
return set_function
end
end
extend ClassMethods
end
end