<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>saba1024</author_name>
  <author_url>https://blog.hatena.ne.jp/saba1024/</author_url>
  <blog_title>saba1024のブログ</blog_title>
  <blog_url>https://saba1024.hateblo.jp/</blog_url>
  <categories>
    <anon>Groovy</anon>
  </categories>
  <description>概要 通常のクラスであれば、インスタンスをnewで生成して、メソッドを呼び出します。 class Hoge { def test(String message) { &quot;${message} in Hoge#test&quot; } } def hoge = new Hoge() assert hoge.test(&quot;test&quot;) == &quot;test in Hoge#test&quot; Groovyのクロージャにも同様のものが有りますが、インスタンスメソッドにもcallという特殊な名前のものを定義することが出来ます。 このcallというメソッドを定義すると、メソッド名を省略してcallメソッドを実行できます。 使い方…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsaba1024.hateblo.jp%2Fentry%2F2017%2F07%2F05%2F004829&quot; title=&quot;Groovyの不思議なメソッド「call」 - saba1024のブログ&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>2017-07-05 00:48:29</published>
  <title>Groovyの不思議なメソッド「call」</title>
  <type>rich</type>
  <url>https://saba1024.hateblo.jp/entry/2017/07/05/004829</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
