Groovy web console

subscribe to the feed Subscribe
to this
site
Monkey see, monkey patch (via #groovywebconsole)
tweet this snippet Tweet
this
script

Monkey see, monkey patch

Published 2 weeks ago by wombat
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
number_of_steps = -4

number_of_steps.metaClass.abs = { "wombat" }
println number_of_steps.abs()