{"categories":["Ruby"],"height":"190","type":"rich","provider_url":"https://hatena.blog","url":"https://blog.tmtms.net/entry/20090129/1233214541","width":"100%","author_url":"https://blog.hatena.ne.jp/tmtms/","blog_url":"https://blog.tmtms.net/","author_name":"tmtms","blog_title":"tmtms \u306e\u30e1\u30e2","version":"1.0","published":"2009-01-29 16:35:41","image_url":null,"provider_name":"Hatena Blog","title":" \u30e1\u30bd\u30c3\u30c9\u306e\u578b\u6307\u5b9a","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F20090129%2F1233214541\" title=\" \u30e1\u30bd\u30c3\u30c9\u306e\u578b\u6307\u5b9a - tmtms \u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Ruby \u306e\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u3084\u623b\u308a\u5024\u306b\u306f\u578b\u6307\u5b9a\u304c\u306a\u3044\u3051\u3069\u3001\u305d\u308c\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306a\u4ed5\u7d44\u307f\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002 module Strict def strict(name, &block) @returns = Object @arguments = [] block.call m = instance_method(name) ret_type, arg_type = @returns, @arguments define_method name do |*args| c = caller args.each_with_index do |arg, i| next unless arg_type[\u2026"}