{"provider_url":"https://hatena.blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasasuzu.hatenablog.jp%2Fentry%2F20090314%2F1247889105\" title=\"\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u5165\u9580\u3092Ruby\u3067\u5199\u7d4c\u3057\u3066\u307f\u305f\u3002 2 - \u76ee\u306e\u524d\u306b\u50d5\u3089\u306e\u9053\u304c\u3042\u308b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://masasuzu.hatenablog.jp/entry/20090314/1247889105","blog_title":"\u76ee\u306e\u524d\u306b\u50d5\u3089\u306e\u9053\u304c\u3042\u308b","author_name":"masasuz","title":"\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u5165\u9580\u3092Ruby\u3067\u5199\u7d4c\u3057\u3066\u307f\u305f\u3002 2","image_url":null,"description":"\u7b2c2\u7ae0 # !/usr/bin/ruby # coding : utf-8 # \u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u5165\u95802\u7ae0 require 'test/unit' class Test_Money < Test::Unit::TestCase def test_multiplication five = Dollar.new(5) product = five.times(2) assert_equal(10, product.get_amount) product = five.times(3) assert_equal(15, product.get_amount) end end class Dollar \u2026","categories":["programing","TDD","Ruby"],"version":"1.0","type":"rich","author_url":"https://blog.hatena.ne.jp/masasuz/","published":"2009-03-14 12:51:45","blog_url":"https://masasuzu.hatenablog.jp/","height":"190","provider_name":"Hatena Blog"}