{"categories":["Ruby","\u304b\u3093\u305f\u3093\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2019%2F03%2F20%2F020835\" title=\"Gem &#39;Ruby2D&#39; \u3067\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0 - Camera Obscura\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","url":"https://obelisk.hatenablog.com/entry/2019/03/20/020835","type":"rich","author_url":"https://blog.hatena.ne.jp/obelisk2/","description":"\u3044\u3064\u3082\u306e\u5f97\u610f\u6280\uff08\uff1f\uff09\u306e\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u3067\u3059\u3002Ruby \u7528\u306e\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea 'Ruby2D' \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u30b3\u30fc\u30c9\u3002 lifegame_for_Ruby2D.rb require 'ruby2d' include Ruby2D::DSL class LifeGame CellWidth = 10 Margin = 20 Space = 2 SideWidth = 35 W = CellWidth * SideWidth + Space * (SideWidth - 1) + Margin * 2 def initialize(num) set width: W, height: W, t\u2026","author_name":"obelisk2","blog_url":"https://obelisk.hatenablog.com/","published":"2019-03-20 02:08:35","blog_title":"Camera Obscura","provider_name":"Hatena Blog","width":"100%","title":"Gem 'Ruby2D' \u3067\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0","height":"190","version":"1.0","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/o/obelisk2/20190320/20190320020235.gif"}