1
- 如何處置紅寶石中的對象...?
class Designer
def message
"Hello, World!"
end
end
c = Designer.new
c.dispose # this is not working... any idea... or any alternative...?
日Thnx ...處置紅寶石類對象
class Designer
def message
"Hello, World!"
end
end
c = Designer.new
c.dispose # this is not working... any idea... or any alternative...?
日Thnx ...處置紅寶石類對象
class Designer
def message
"Hello, World!"
end
end
c = Designer.new
# something like dispose :)
c = nil
# and you can add something like this
GC.start