rubyx/lib/boot/string.rb

20 lines
684 B
Ruby
Raw Normal View History

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