{"author_url":"https://blog.hatena.ne.jp/winebarrel/","title":" \u7d44\u307f\u8fbc\u307fRuby: top-level\u3092\u53d6\u5f97\u3059\u308b","categories":["RUBY"],"width":"100%","blog_url":"https://so-wh.at/","height":"190","author_name":"winebarrel","description":"http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/30139?29887-31396 #include <ruby.h> #include <version.h> EXTERN VALUE ruby_top_self; int main() { int status; ruby_init(); ruby_init_loadpath(); rb_eval_string_protect(\"def my_func; puts 'hello'; end\", &status); if (status != 0) { puts(\"\u5927\u2026","published":"2008-11-04 00:00:07","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20081104%2Fp1\" title=\" \u7d44\u307f\u8fbc\u307fRuby: top-level\u3092\u53d6\u5f97\u3059\u308b - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","url":"https://so-wh.at/entry/20081104/p1","version":"1.0","blog_title":"so what","image_url":null}