This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.metaClass.toGroovy = {"$delegate + DSL, AST, Builders and more..."} | |
def java = "Java" | |
println java.toGroovy() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 'よろしくお願いします。' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.change_vision.jude.api.inf.project.* | |
import com.change_vision.jude.api.inf.model.* | |
import com.change_vision.jude.api.inf.editor.* | |
import org.jggug.kobo.gexcelapi.GExcel | |
class AstahGenerator { | |
static generate(data) { | |
def pa = ProjectAccessorFactory.getProjectAccessor() | |
def editor = ModelEditorFactory.getERModelEditor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jggug.bikisuke.excel2json | |
import groovy.json.* | |
import org.jggug.kobo.gexcelapi.GExcel | |
class Main { | |
static types | |
static fields | |
static data | |
static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SimpleMockServer { | |
private File dir | |
private List responses = [] | |
private FilePointer pointer | |
void loadFiles() { | |
responses = new JsonReader(dir).read() | |
pointer = new FilePointer(responses.size()) | |
} |