B
BlueFox
in test.rb
class Test
def greeting
"hello world!"
end
end
def test
$test ||= Test.new
end
and somewhere
puts test.greeting
what is mean of(outside of the class define)
def test
$test ||= Test.new
end
and where can find any document?
thanks.
class Test
def greeting
"hello world!"
end
end
def test
$test ||= Test.new
end
and somewhere
puts test.greeting
what is mean of(outside of the class define)
def test
$test ||= Test.new
end
and where can find any document?
thanks.