看板 Ruby 關於我們 聯絡資訊
在看ruby的String介紹時 要產生String物件可以用Kernel module裡面的"S"tring method 可是ruby的method不是規定要小寫開頭嗎 @@? 所以我查了一下發現Kernel module裡面大寫開頭的方法還不止String這個method 還有Float URI Integer Array這四個 所以想請問一下為什麼會這樣勒 @@!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.229.40.45
godfat:因為 method 可以不用小寫開頭 :p 10/21 20:31
hanta:是唷 @@" 那可能是我搞錯哩 剛溫!! 10/21 20:58