<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ledsun</author_name>
  <author_url>https://blog.hatena.ne.jp/ledsun/</author_url>
  <blog_title>@ledsun blog</blog_title>
  <blog_url>https://ledsun.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby.wasm</anon>
  </categories>
  <description>Node.jsからruby.wasmを動かす - @ledsun blog の続きです。 index.mjsを次のように書きます。 import { readFile } from &quot;node:fs/promises&quot;; import { createRequire } from &quot;node:module&quot;; import { DefaultRubyVM } from &quot;@ruby/wasm-wasi/dist/node&quot;; const vm = await initRubyVM(); const script = ` class Dog def name()= 'jhon' end Dog.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fledsun.hatenablog.com%2Fentry%2F2025%2F12%2F30%2F180907&quot; title=&quot;Node.jsからruby.wasmを使ってRubyのメソッドを呼ぶ - @ledsun blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-30 18:09:07</published>
  <title>Node.jsからruby.wasmを使ってRubyのメソッドを呼ぶ</title>
  <type>rich</type>
  <url>https://ledsun.hatenablog.com/entry/2025/12/30/180907</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
