<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a2ikm</author_name>
  <author_url>https://blog.hatena.ne.jp/a2ikm/</author_url>
  <blog_title>There's an echo in my head</blog_title>
  <blog_url>https://ikm.hatenablog.jp/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>よく忘れるので。細かい話は他の記事にお任せして、テンプレートからファイルを作れるところまで。 0. こんなのを作りたいとかんがえる 抽象クラスFigureのサブクラスをapp/modelsに作るようなジェネレータがほしい。 クラス名は引数で指定したい こんな感じで使うイメージ: $ rails g figure triangle --color blue 1. ジェネレータをジェネレートする $ rails g generator figure これでlib/generators/figure以下に USAGE : 使い方を記述するテキストファイル figure_generator.rb : …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fikm.hatenablog.jp%2Fentry%2F2015%2F09%2F09%2F194602&quot; title=&quot;Railsのジェネレータを自作する - There&amp;#39;s an echo in my head&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-09-09 19:46:02</published>
  <title>Railsのジェネレータを自作する</title>
  <type>rich</type>
  <url>https://ikm.hatenablog.jp/entry/2015/09/09/194602</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
