#a sudoku solver in Rubymodule Sudokuclass PuzzleASCII=".123456789"BIN="\000\001\002\003\004\005\006\007\010\011"def initialize(lines)if(lines.respond_to?:join)s=lines.joinelses=lines.dupends.gsub!(/\s/,"")raise Invalid,"Grid is the wrong size"
Ruby 學習筆記參考書--why’s (poignant) guide to ruby :CSDN資源ruby中的資料類型和其他基本操作資訊variables any plain,lowercase word is a variable in ruby例如 x,y,banana2,phone_a_quailnumbersa series of digits which can start with a plus or minus sign例如 1,23,-10000stringsany
Ruby學習筆記ruby使用方法the first half of rubywe are defining, we are creating例如 blue_crystal=1 , leaf_tender=5the second half of rubyputting things in motion例如 pipe.catch_a_star總結:1.defining things 2.putting those things into action
轉自 百度 -- dkwindows下安裝或升級時gem經常會碰到Please update your PATH to include build tools or download the DevKitfrom 'http://rubyinstaller.org/downloads' and follow the instructionsat
轉自:http://developer.51cto.com/art/200908/147276.htmRuby on Rails安裝,有人說難,但其實也很方便。要基於ruby開發應用程式,我們必須安裝ruby、gem、rails、mongrel。Ruby on Rails安裝步驟解析第一,到官方網站上下載最新的Ruby One-Click
這幾天根據《利用Rails開發敏捷Web應用》這本書亦步亦趨地學習一些Ruby on Rails的知識,蠻有意思的,但並不是想像中的那麼好玩,比如在使用IDE開發RoR應用時就遇到一些問題,耗費了半天的時間也沒有弄明白,晚上雙查閱了一些文檔才有所入門。看來如一個朋友所說,目前RoR相關的網路資料並不是特別豐富,想必一些想學習這個架構的朋友也有些這方面的困難,在此把我的一些經驗所得與諸位分享,不當之處見諒。Ruby on Rails環境的搭建(基於Win