{"categories":["Ruby"],"blog_title":"Tbpgr Blog","blog_url":"https://tbpgr.hatenablog.com/","height":"190","image_url":null,"width":"100%","author_url":"https://blog.hatena.ne.jp/tbpg/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20130106%2F1357483218\" title=\"Ruby | \u4ee3\u5165 - 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>","published":"2013-01-06 23:40:18","author_name":"tbpg","version":"1.0","type":"rich","url":"https://tbpgr.hatenablog.com/entry/20130106/1357483218","title":"Ruby | \u4ee3\u5165","provider_url":"https://hatena.blog","description":"\u6982\u8981 Ruby\u306e\u4ee3\u5165\u306b\u3064\u3044\u3066 \u8a73\u7d30 \u5909\u6570\u306e\u4ee3\u5165 variable = \u4efb\u610f\u306e\u5024 \u5c5e\u6027\u306e\u4ee3\u5165 instance.attribute = \u4efb\u610f\u306e\u5024 \u591a\u91cd\u4ee3\u5165 Ruby\u306f\u8907\u6570\u306e\u5909\u6570\u306b\u4e00\u6c17\u306b\u5024\u3092\u4ee3\u5165\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002 a,b = 1,2 \u4ee3\u5165\u306e\u5165\u308c\u5b50 \u591a\u91cd\u4ee3\u5165\u3092\u884c\u3046\u969b\u306b\u3001\u62ec\u5f27\u3092\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u5165\u308c\u5b50\u306e\u969b\u306e\u52d5\u4f5c\u306b\u3064\u3044\u3066\u306f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3068\u51fa\u529b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 # encoding: Windows-31J require \"pp\" a = 1 # \u57fa\u672c\u7684\u306a\u4ee3\u5165 a = b = 1 # \u4ee3\u5165\u306f\u3064\u306a\u3052\u308b\u3053\u3068\u304c\u53ef\u80fd p \"a=#{a}\" p \"b=#{b}\" class Hoge\u2026"}