Notice
Recent Posts
Recent Comments
Link
목록답 (2)
for 컴융
ruby_koans about_hashes.rb solution and methods
solution require File.expand_path(File.dirname(__FILE__) + '/neo') class AboutHashes "uno", :two => "dos" } assert_equal 2, hash.size end def test_accessing_hashes hash = { :one => "uno", :two => "d..
Ruby/ruby_koans
2018. 2. 4. 18:56
ruby_koans about_objects.rb solution and methods
solution require File.expand_path(File.dirname(__FILE__) + '/neo') class AboutObjects < Neo::Koan def test_everything_is_an_object assert_equal true, 1.is_a?(Object) assert_equal true, 1.5.is_a?(Object) assert_equal true, "string".is_a?(Object) assert_equal true, nil.is_a?(Object) assert_equal true, Object.is_a?(Object) end def test_objects_can_be_converted_to_strings assert_equal"123", 123.to_s..
Ruby/ruby_koans
2018. 2. 4. 18:36