more on classes, have to work on asm next

This commit is contained in:
Torsten Ruger
2014-06-01 21:03:08 +03:00
parent 1d10c2c03e
commit 08bbad0fdc
7 changed files with 28 additions and 9 deletions

View File

@ -6,14 +6,14 @@ class TestClass < MiniTest::Test
def test_class
@string_input = <<HERE
class Object
def index_of( name )
return @layout.index_of(name)
end
def layout()
return @layout
end
def class()
return layout.class()
end
def index_of( name )
return layout.index_of(name)
return @layout.class()
end
end
class String
@ -21,7 +21,7 @@ class String
return @length
end
def plus(str)
my_length = self.length()
my_length = @length
str_len = str.length()
new_string = String.new(my_length + str_len)
i = 0