OpenStruct è¦ç´ ãåçã«è¿½å ã»åé¤ã§ããæ軽ãªæ§é ä½ãæä¾ããã¯ã©ã¹ã§ãã OpenStruct ã®ã¤ã³ã¹ã¿ã³ã¹ã«å¯¾ãã¦æªå®ç¾©ãªã¡ã½ãã x= ãå¼ã¶ã¨ã OpenStruct ã¯ã©ã¹ã® BasicObject#method_missing ã§ææããããã®ã¤ã³ã¹ã¿ã³ã¹ã« ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ãã x, x= ãå®ç¾©ããã¾ãã ãã®æåã«ãã£ã¦è¦ç´ ãåçã«å¤æ´ã§ããæ§é ä½ã¨ãã¦åãã¾ãã æ軽ã«ä½¿ãã require "ostruct" config = OpenStruct.new config.level #=> nil config.level = :debug config.level #=> :debug
{{#tags}}- {{label}}
{{/tags}}