Created
November 8, 2011 14:11
-
-
Save yaotti/1347820 to your computer and use it in GitHub Desktop.
Rubyでクラスメソッドの定義方法色々 ref: http://qiita.com/items/951
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A | |
def A.class_method_one; end def self.class_method_two; end class << A | |
def class_method_three; end | |
end class << self | |
def class_method_four; end | |
end | |
enddef A.class_method_five; endclass << A | |
def class_method_six; end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment