<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ganmacs</author_name>
  <author_url>https://blog.hatena.ne.jp/ganmacs/</author_url>
  <blog_title>memo-mode</blog_title>
  <blog_url>https://ganmacs.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>30分くらいでできる簡単な問題探しててmzpさんのやつを見つけてそれを解いてみてる． これが動けばいい Dog = MyStruct.new(:name, :age) fred = Dog.new('fred', 5) fred.age = 6 printf &quot;name:%s age:%d\n&quot;, fred.name, fred.age 回答 class MyStruct def self.new(*names) Class.new do |_obj| def initialize(*values) @__values = values end names.each_with_index do…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fganmacs.hatenablog.com%2Fentry%2F2015%2F07%2F31%2F083029&quot; title=&quot;RubyのStructの簡易版実装してみた - memo-mode&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>2015-07-31 08:30:29</published>
  <title>RubyのStructの簡易版実装してみた</title>
  <type>rich</type>
  <url>https://ganmacs.hatenablog.com/entry/2015/07/31/083029</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
