{"blog_title":"\u541b\u306f\u5fc3\u7406\u5b66\u8005\u306a\u306e\u304b\uff1f","width":"100%","blog_url":"https://karoten512.hatenablog.com/","provider_name":"Hatena Blog","type":"rich","image_url":null,"categories":["ruby"],"description":"module\u3092\u5b9a\u7fa9\u3059\u308b module MyModule def hello puts 'hello' end end MyModule.hello #=> undefined method `hello' for MyModule:Module (NoMethodError) \u3053\u308c\u3060\u3051\u3060\u3068\u4f7f\u3048\u306a\u3044\u3002 module\u3092\u5b9a\u7fa9 + module_function\u3092\u5b9a\u7fa9 module MyModule def hello puts 'hello' end module_function :hello end MyModule.hello #=> hello \u4f7f\u3048\u308b\u3002","provider_url":"https://hatena.blog","title":"Ruby\u306emodule\u3068module_function\u306b\u3064\u3044\u3066","height":"190","author_name":"karoten512","version":"1.0","published":"2017-10-23 23:07:34","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaroten512.hatenablog.com%2Fentry%2F2017%2F10%2F23%2F230734\" title=\"Ruby\u306emodule\u3068module_function\u306b\u3064\u3044\u3066 - \u541b\u306f\u5fc3\u7406\u5b66\u8005\u306a\u306e\u304b\uff1f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/karoten512/","url":"https://karoten512.hatenablog.com/entry/2017/10/23/230734"}