Skip to content

Instantly share code, notes, and snippets.

@yaotti
Created November 8, 2011 14:11
Show Gist options
  • Save yaotti/1347820 to your computer and use it in GitHub Desktop.
Save yaotti/1347820 to your computer and use it in GitHub Desktop.
Rubyでクラスメソッドの定義方法色々 ref: http://qiita.com/items/951
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