const_missing(name)[permalink][rdoc][edit] å®ç¾©ããã¦ããªãå®æ°ãåç §ããã¨ãã« Ruby ã¤ã³ã¿ããªã¿ããã®ã¡ã½ãããå¼ã³ã¾ãã [PARAM] name: åç §ããå®æ°åã® Symbol [EXCEPTION] NameError: ãã®ã¡ã½ãããå¼ã³åºããå ´åãããã©ã«ãã§çºçããä¾å¤ ä¾ class Foo def Foo.const_missing(id) warn "undefined constant #{id.inspect}" end Bar end Foo::Bar # => undefined constant :Bar # undefined constant :Bar
{{#tags}}- {{label}}
{{/tags}}