<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Pocket7878_dev</author_name>
  <author_url>https://blog.hatena.ne.jp/Pocket7878_dev/</author_url>
  <blog_title>Let's write β</blog_title>
  <blog_url>https://tech-blog.pocket7878.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Cairoライブラリを利用して画像を出力できるようにしてみました。 もうすこし抽象化したいですが.. require 'cairo' class World def initialize(size) @map = Array.new(size, 0) @rule = Hash.new end def show @map.each do |cell| if cell == 0 print &quot; &quot; else print &quot;X&quot; end end puts end def cellNeighbors(idx) [ @map[idx-1], @map[idx], @map[(idx+1) % (@map…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-blog.pocket7878.com%2Fentry%2F2012%2F09%2F28%2F170050&quot; title=&quot;Rubyで一次元オートマトン part 2 (画像生成） - Let&amp;#39;s write β&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>http://cdn-ak.f.st-hatena.com/images/fotolife/P/Pocket7878_dev/20120928/20120928170033.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-09-28 17:00:50</published>
  <title>Rubyで一次元オートマトン part 2 (画像生成）</title>
  <type>rich</type>
  <url>https://tech-blog.pocket7878.com/entry/2012/09/28/170050</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
