{"image_url":null,"blog_url":"https://secret-garden.hatenablog.com/","height":"190","title":"Ruby \u306e binding \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068 eval()","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","description":"Ruby \u3067\u306f\u73fe\u5728\u306e\u30b9\u30b3\u30fc\u30d7\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092 bindig \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u6271\u3046\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002 def func a, b add = a + b # \u3053\u306e\u30e1\u30bd\u30c3\u30c9\u5185\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u8fd4\u3059 binding end p func 1, 2 # => #<Binding:0x00000000c0fe18> [binding \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068 #eval()] bindig \u306e\u5229\u7528\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u304c\u3001#eval() \u3067\u4f7f\u7528\u3059\u308b\u306e\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002 def func a, b add = a + b # \u3053\u306e\u30e1\u30bd\u30c3\u30c9\u5185\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u8fd4\u3059 binding end context = func 1\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2016%2F10%2F01%2F000000\" title=\"Ruby \u306e binding \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068 eval() - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/osyo-manga/","categories":["Ruby"],"width":"100%","url":"https://secret-garden.hatenablog.com/entry/2016/10/01/000000","blog_title":"Secret Garden(Instrumental)","published":"2016-10-01 00:00:00","type":"rich","author_name":"osyo-manga","version":"1.0"}