Skip to content

Instantly share code, notes, and snippets.

@tbarker9
Created October 21, 2013 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbarker9/7085635 to your computer and use it in GitHub Desktop.
Save tbarker9/7085635 to your computer and use it in GitHub Desktop.
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

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