Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
basic mdoc script for @TApicella
import metridoc.core.Step
step(foo: "I am foo") {
println "I am from foo"
}
step(bar: "I am bar") {
depends "foo"
println "I am from foo"
}
runStep("bar")
def foo = includeService(Foo)
def bar = includeService(Bar)
println foo.bar
println foo.binding
println bar.foo
runStep("runFoo")
class Foo {
Binding binding
Bar bar
def init() {
println "foo is iintiallizing"
}
@Step(description = "running something from foo")
void runFoo() {
println "I am running something from foo"
def testClosure = this.&testMethod
testClosure.call("hey")
testClosure("hey")
}
void testMethod(String data) {
println "printing data $data"
}
}
class Bar {
Foo foo
}
@tbarker9
Copy link
Author

tbarker9 commented Oct 21, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment