{"image_url":null,"published":"2009-09-16 00:00:00","blog_title":"Smalltalk\u306et\u306f\u5c0f\u6587\u5b57\u3067\u3059","provider_name":"Hatena Blog","url":"https://sumim.hatenablog.com/entry/20090916/p1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsumim.hatenablog.com%2Fentry%2F20090916%2Fp1\" title=\" Ruby \u306b\u3082 Method \u3084 Proc \u306b\u81ea\u3089\u306e\u30bd\u30fc\u30b9\u3092\u5410\u304b\u305b\u308b\u6a5f\u80fd\u304c\u7d44\u307f\u8fbc\u307e\u308c\u308b\u3089\u3057\u3044 - Smalltalk\u306et\u306f\u5c0f\u6587\u5b57\u3067\u3059\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"1.9.3 \u3078\u306e\u5c0e\u5165\u3092\u76ee\u6307\u3059\u4e88\u5b9a\u3068\u304b\u3002\u3053\u3046\u3057\u305f\u6a5f\u80fd\u306f\u3001Ruby \u3067 Smalltalk \u3070\u308a\u306e\u30af\u30e9\u30b9\u30d6\u30e9\u30a6\u30b6\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u3092\u4f5c\u308b\u306e\u306b\u3082\u5f79\u7acb\u3061\u305d\u3046\u3067\u3059\u306d\u3002 \u4f8b: proc = ->(x, y) { x + y } proc.to_source #=> \"x + y\" [ruby-dev:39301] [Feature #2080] Proc#to_source, Method#to_source \u3061\u306a\u307f\u306b\u3001Squeak Smalltalk \u306e\u4f3c\u305f\u3088\u3046\u306a\u6a5f\u80fd\u3060\u3068 #decompileString \u3068\u304b #getSource \u304c\u8fd1\u3044\u3067\u3057\u3087\u3046\u304b\u3002 | block | block := [:x :y |\u2026","height":"190","blog_url":"https://sumim.hatenablog.com/","title":" Ruby \u306b\u3082 Method \u3084 Proc \u306b\u81ea\u3089\u306e\u30bd\u30fc\u30b9\u3092\u5410\u304b\u305b\u308b\u6a5f\u80fd\u304c\u7d44\u307f\u8fbc\u307e\u308c\u308b\u3089\u3057\u3044","author_name":"sumim","categories":["OOPL"],"author_url":"https://blog.hatena.ne.jp/sumim/","provider_url":"https://hatena.blog","version":"1.0","width":"100%","type":"rich"}