Sha256: b291aa4194ec3e2b207e96d9461dc39fc965912a325761d73b2c1d505be937e9

Contents?: true

Size: 253 Bytes

Versions: 7

Compression:

Stored size: 253 Bytes

Contents

# module: randomness

class Amazing < Thor
  desc "describe NAME", "say that someone is amazing"
  method_options :forcefully => :boolean
  def describe(name, opts)
    ret = "#{name} is amazing"
    puts opts["forcefully"] ? ret.upcase : ret
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090408130025 lib/thor/spec/fixtures/task.thor
sproutit-sproutcore-1.0.0.20090416161445 lib/thor/spec/fixtures/task.thor
sproutit-sproutcore-1.0.0.20090720093355 lib/thor/spec/fixtures/task.thor
sproutit-sproutcore-1.0.0.20090720202429 lib/thor/spec/fixtures/task.thor
sproutit-sproutcore-1.0.0.20090721125122 lib/thor/spec/fixtures/task.thor
sproutit-sproutcore-1.0.126 lib/thor/spec/fixtures/task.thor
sproutcore-1.0.1003 lib/thor/spec/fixtures/task.thor