xml地图|网站地图|网站标签 [设为首页] [加入收藏]

Object.class_variable_set and get

来源:http://www.ccidsi.com 作者:集成经验 人气:106 发布时间:2019-06-19
摘要:Object.class_variable_set(:@@x, 1) # Private in Ruby 1.8Object.class_variable_get(:@@x) # Private in Ruby 1.8Object.class_variable_defined?(:@@x) # = true; Ruby 1.9 and later
Object.class_variable_set(:@@x, 1)   # Private in Ruby 1.8
Object.class_variable_get(:@@x)      # Private in Ruby 1.8
Object.class_variable_defined?(:@@x) # => true; Ruby 1.9 and later

本文由68399皇家赌场发布于集成经验,转载请注明出处:Object.class_variable_set and get

关键词: 68399皇家赌场 Ruby 反射

上一篇:00600的解决方法

下一篇:没有了

最火资讯