Created
October 21, 2013 15:18
-
-
Save tbarker9/7085635 to your computer and use it in GitHub Desktop.
basic mdoc script for @TApicella
This file contains hidden or 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 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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for @TApicella