Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package dslds
- contribute ( fileExtension("groovy") & (currentType(subType("distances.Distance")) | currentType(subType("java.lang.Number")))) {
- [ "m", "yd", "mi", "km", "cm" ].each { val ->
- property name:val, type:"Distance", doc: "The unit is " + val
- }
- property name: "thisIsAProperty", type: "java.lang.String", doc: "Even if you don't believe it, this is a property"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement