睡月花儿

  • Home
  • About
  • coding
  • Tags86
  • Categories7
  • Posts870
  • Sitemap
  • Commonweal 404
  • Search
  • Table of Contents
  • Overview
戛戛Happy

戛戛Happy

后端, 操作系统, 互联网, 程序开发, Linux, 数据库, MySql, Golang, Ruby
RSS
Creative Commons

ruby class_variable method

Posted on 2011-09-23 In Ruby
class One
  @@var1 = 1
end
class Two < One
  @@var2 = 2
end
One.class_variables   #=> [:@@var1]
Two.class_variables   #=> [:@@var2]
  • Post author: 戛戛Happy
  • Post link: https://blog.gagahappy.cn/ruby-class-variable-method/
  • Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.
后端
史蒂夫·乔布斯经典语录
rails validates_presence_of
京ICP备10044755号
© 2009 – 2024 戛戛Happy
Powered by Hexo & NexT.Gemini