Skip to content

Instantly share code, notes, and snippets.

@bikisuke
Created November 5, 2011 09:20
Show Gist options
  • Save bikisuke/1341309 to your computer and use it in GitHub Desktop.
Save bikisuke/1341309 to your computer and use it in GitHub Desktop.
合宿の自己紹介・改
class JGGUG {
static TODOリスト = ['次回ぐるーびーたんのネーム作成', '次回Gマガの記事準備', 'Grails日本語ドキュメントの校正']
static def 合宿でやりたいこと = {
println delegate.getSimpleName() + this.metaClass.getProperties().find { it.type == Object.class }.name + 'は、'
TODOリスト.each { println ' ・' + it }
println 'です。\n'
println 'よろしくお願いします。'
}
}
class 綿引琢磨 {
綿引琢磨() {
println """こんにちは。${this.class.getSimpleName()} です。
アラフォーどまんなかの39歳、独身です。
twitter id は @bikisuke です。
"""
}
def 自己紹介(Closure... c) {
c.each { it.call() }
}
}
new 綿引琢磨().自己紹介 JGGUG.合宿でやりたいこと
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment