{"provider_url":"https://hatena.blog","published":"2015-02-27 09:35:47","author_name":"osyo-manga","categories":["Ruby"],"url":"https://secret-garden.hatenablog.com/entry/2015/02/27/093547","title":"Ruby \u306e refinements \u306e\u843d\u3068\u3057\u7a74","image_url":null,"provider_name":"Hatena Blog","height":"190","blog_url":"https://secret-garden.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F02%2F27%2F093547\" title=\"Ruby \u306e refinements \u306e\u843d\u3068\u3057\u7a74 - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Secret Garden(Instrumental)","type":"rich","author_url":"https://blog.hatena.ne.jp/osyo-manga/","version":"1.0","width":"100%","description":"Ruby \u306e refinements \u306e\u843d\u3068\u3057\u7a74 refinements \u3092\u4f7f\u304a\u3046\u3068\u3057\u305f\u3089\u3061\u3087\u3063\u3068\u3064\u3089\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u3055\u3066\u3001refinements \u306f using \u3092\u5b9a\u7fa9\u3057\u305f\u3042\u3068\u3067\u6709\u52b9\u306b\u306a\u308a\u307e\u3059\u3002 class X end module Test refine X do def homu \"homu\" end end end # using \u4ee5\u964d\u3067 X.homu \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b using Test X.new.homu # => \"homu\" \u3057\u304b\u3057\u3001\u6b21\u306e\u3088\u3046\u306b using \u4ee5\u524d\u306e\u30e1\u30bd\u30c3\u30c9\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002 # \u3053\u3053\u3067 refine \u3067\u5b9a\u7fa9\u3057\u305f\u30e1\u30bd\u30c3\u2026"}