{"image_url":null,"title":"Ruby | Module | class_variable_defined?","blog_url":"https://tbpgr.hatenablog.com/","published":"2014-07-11 21:33:41","description":"\u6982\u8981 Module#class_variable_defined?(name) -> bool \u8a73\u7d30 name \u3067\u4e0e\u3048\u3089\u308c\u305f\u540d\u524d\u306e\u30af\u30e9\u30b9\u5909\u6570\u304c\u5b58\u5728\u3059\u308b\u5834\u5408 true \u3092 \u8fd4\u5374\u3002 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 require 'tbpgr_utils' module Hogeable @@hoge = 1 end class Hoge @@hoge = 2 end class Hige include Hogeable end class Hage end bulk_puts_eval binding, <<-EOS Hoge.class_variable_defined? :@@hoge Hige.clas\u2026","provider_url":"https://hatena.blog","type":"rich","provider_name":"Hatena Blog","url":"https://tbpgr.hatenablog.com/entry/20140711/1405082021","width":"100%","version":"1.0","height":"190","blog_title":"Tbpgr Blog","categories":["Ruby"],"author_url":"https://blog.hatena.ne.jp/tbpg/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20140711%2F1405082021\" title=\"Ruby | Module | class_variable_defined? - Tbpgr Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"tbpg"}