· software
Ruby 클래스와 객체지향 프로그래밍
기본 클래스 루비 클래스 Test puts :Test.object_id.to_s def test puts :test.object_id.to_s @test = 10 puts :test.object_id.to_s end end t = Test.new t.test 생성자와 인스턴스...
기본 클래스 루비 클래스 Test puts :Test.object_id.to_s def test puts :test.object_id.to_s @test = 10 puts :test.object_id.to_s end end t = Test.new t.test 생성자와 인스턴스...