skip to main | skip to sidebar

deeply love rubyOnRails

2008年4月30日 星期三

constant

use capital letter

ex:

Apple,  Rabbit


access constant define in class

ex:

Name is defined in the class Rabbit

Rabbit::Name

張貼者: 彼得潘 於 清晨7:51
標籤: ruby

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

標籤

  • database
  • rails application
  • rails config
  • rails controller
  • rails general
  • rails model
  • rails view
  • ruby
  • software

my other website

  • deeply love activity
  • deeply love linux
  • deeply love watch & listen
  • deeply love java
  • deeply love html & css
  • deeply love javascript & ajax
  • deeply love apple & mac

網誌存檔

  • ▼  2008 (104)
    • ►  6月 (7)
    • ►  5月 (77)
    • ▼  4月 (20)
      • web api
      • YAML
      • error handling: rescue & raise
      • range
      • define class
      • constant
      • hash
      • RDoc
      • each, each_with_index, map
      • array
      • regular expression
      • string method
      • module
      • require
      • math methods
      • useful utilities (irb, ruby)
      • useful methods
      • to_proc ( &: )
      • all? and any?
      • casting ( change type)

關於我自己

我的相片
彼得潘
App程式設計入門 iPhone . iPad 第二版 2012.2 App程式設計入門 iPhone . iPad 第一版 2010.11
檢視我的完整簡介