<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>totora0155</author_name>
  <author_url>https://blog.hatena.ne.jp/totora0155/</author_url>
  <blog_title>Milk+ea</blog_title>
  <blog_url>https://totora0155.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>引数指定で。 task :task1, [:arg1, :arg2] do |t, args| args.with_defaults(arg1: 'foo', arg2: 'bar') p args['arg1'] p args['arg2'] end # rake task1[&quot;foo&quot;,&quot;bar&quot;] #&gt; &quot;foo&quot; #&gt; &quot;bar&quot; # rake task #&gt; &quot;foo&quot; #&gt; &quot;bar&quot; #with_defaultsでデフォルト値を設定します。 環境変数で。 task :pre do p &quot;pre:#{ENV['arg1']}&quot; p &quot;pre:#{ENV['arg2']}&quot; end …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotora0155.hatenablog.jp%2Fentry%2F2013%2F12%2F22%2F052256&quot; title=&quot;Rakeの引数を設定するあたり - Milk+ea&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>2013-12-22 05:22:56</published>
  <title>Rakeの引数を設定するあたり</title>
  <type>rich</type>
  <url>https://totora0155.hatenablog.jp/entry/2013/12/22/052256</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
