Groovy web console

subscribe to the feed Subscribe
to this


Published 6 months ago by tsfreitas
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
class PersonWOConstructor {
  String command = "" 
  String pwd = "/home"
  String user = "root"

  def blah() {
    print(" commdn [$command], pwd [$pwd], user [$user] ")

new PersonWOConstructor(pwd : "/usr", command: "echo").blah()