{"published":"2003-12-23 00:00:01","blog_title":"\u30a2\u30ac\u30c6\u30ca","description":"\uff11\u884c\u3067\u30a2\u30af\u30bb\u30b5\u4f5c\u308c\u308b\u306a\u3093\u3066\u3001\u30b9\u30c6\u30ad\u3067\u3059\u3002 class Person def initialize(name, age) @name = name @age = age end # \u3044\u308f\u3086\u308b\u30b2\u30c3\u30bf\u30fc attr_reader :name, :age # \u3044\u308f\u3086\u308b\u30bb\u30c3\u30bf\u30fc attr_writer :name, :age # \u30bb\u30c3\u30bf\u30fc\u30b2\u30c3\u30bf\u30fc\u3092\u540c\u6642\u306b\u4f5c\u6210 #attr_accessor :name end person = Person.new(\"ruby\", 20) print person.name print person.age","author_name":"agt","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fagt.hatenadiary.org%2Fentry%2F20031223%2Fp2\" title=\"Ruby\u3067\u30a2\u30af\u30bb\u30b5\u30e1\u30bd\u30c3\u30c9 - \u30a2\u30ac\u30c6\u30ca\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"author_url":"https://blog.hatena.ne.jp/agt/","height":"190","provider_name":"Hatena Blog","type":"rich","version":"1.0","provider_url":"https://hatena.blog","title":"Ruby\u3067\u30a2\u30af\u30bb\u30b5\u30e1\u30bd\u30c3\u30c9","width":"100%","blog_url":"https://agt.hatenadiary.org/","url":"https://agt.hatenadiary.org/entry/20031223/p2","categories":["Ruby"]}