rename singleton_class to single_class and misc
was clashing with real ruby method name also many superclass mismatch fixes some misc
This commit is contained in:
@ -15,6 +15,7 @@ module RubyX
|
||||
end
|
||||
def compile_in_test( input , options = {})
|
||||
vool = ruby_to_vool(in_Test(input) , options)
|
||||
vool.to_parfait
|
||||
vool.to_mom(nil)
|
||||
itest = Parfait.object_space.get_class_by_name(:Test)
|
||||
assert itest
|
||||
@ -23,7 +24,7 @@ module RubyX
|
||||
end
|
||||
module ParfaitHelper
|
||||
include Preloader
|
||||
|
||||
|
||||
def load_parfait(file)
|
||||
File.read File.expand_path("../../../lib/parfait/#{file}.rb",__FILE__)
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ module RubyX
|
||||
def len ; 25 ; end
|
||||
def source
|
||||
<<GET
|
||||
class Integer
|
||||
class Integer < Data4
|
||||
def #{op}(other)
|
||||
X.comparison(:"#{op}")
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ module RubyX
|
||||
include MacroHelper
|
||||
def source
|
||||
<<GET
|
||||
class Integer
|
||||
class Integer < Data4
|
||||
def div10
|
||||
X.div10
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ module RubyX
|
||||
include MacroHelper
|
||||
def source
|
||||
<<GET
|
||||
class Integer
|
||||
class Integer < Data4
|
||||
def div4
|
||||
X.div4
|
||||
end
|
||||
|
@ -7,7 +7,7 @@ module RubyX
|
||||
def op ; :+ ; end
|
||||
def source
|
||||
<<GET
|
||||
class Integer
|
||||
class Integer < Data4
|
||||
def #{op}(other)
|
||||
X.int_operator(:"#{op}")
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ module RubyX
|
||||
include MacroHelper
|
||||
def source
|
||||
<<GET
|
||||
class Word
|
||||
class Word < Data8
|
||||
def get_internal_byte(at)
|
||||
X.get_internal_byte
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ module RubyX
|
||||
include MacroHelper
|
||||
def source
|
||||
<<GET
|
||||
class Word
|
||||
class Word < Data8
|
||||
def putstring
|
||||
X.putstring
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ module RubyX
|
||||
include MacroHelper
|
||||
def source
|
||||
<<GET
|
||||
class Word
|
||||
class Word < Data8
|
||||
def set_internal_byte( at , value)
|
||||
X.set_internal_byte
|
||||
end
|
||||
|
Reference in New Issue
Block a user