<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Craftworks</author_name>
  <author_url>https://blog.hatena.ne.jp/Craftworks/</author_url>
  <blog_title>Craftworks Tech Blog - Branch</blog_title>
  <blog_url>https://craftworks.hatenadiary.org/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>今日 DBIC を使ってて若干ハマったのでメモです。 sub list { shift-&gt;schema-&gt;resultset('User')-&gt;search({}, { 'order_by' =&gt; 'user_id' }); } sub as_fdat { map +{ $_-&gt;get_columns }, $_[1]-&gt;all; } sub list_as_fdat { my $self = shift; [ $self-&gt;as_fdat( $self-&gt;list() ) ]; } というようなメソッドを用意して、実行したら all なんてメソッド無いよと怒られました。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcraftworks.hatenadiary.org%2Fentry%2F20090328%2F1238219997&quot; title=&quot;関数の引数のコンテキストはリスト - Craftworks Tech Blog - Branch&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>2009-03-28 14:59:57</published>
  <title>関数の引数のコンテキストはリスト</title>
  <type>rich</type>
  <url>https://craftworks.hatenadiary.org/entry/20090328/1238219997</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
