Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
class Book {
   String title
}

Book.metaClass.'static'.create << { String title -> new Book(title:title) }

def b = Book.create("The Stand")