Sha256: 5a0b8139cf463f94835a7c624278cb792cc114946e3a8f31f50abd7632d587e1

Contents?: true

Size: 309 Bytes

Versions: 13

Compression:

Stored size: 309 Bytes

Contents

# module: random

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

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090408130025 lib/thor/task.thor
sproutit-sproutcore-1.0.0.20090416161445 lib/thor/task.thor
sproutit-sproutcore-1.0.0.20090720093355 lib/thor/task.thor
sproutit-sproutcore-1.0.0.20090720202429 lib/thor/task.thor
sproutit-sproutcore-1.0.0.20090721125122 lib/thor/task.thor
sproutit-sproutcore-1.0.126 lib/thor/task.thor
sproutit-sproutcore-1.0.20090721145251 lib/thor/task.thor
sproutit-sproutcore-1.0.20090721145280 lib/thor/task.thor
sproutit-sproutcore-1.0.20090721145281 lib/thor/task.thor
sproutit-sproutcore-1.0.20090721145282 lib/thor/task.thor
sproutit-sproutcore-1.0.20090721145285 lib/thor/task.thor
sproutit-sproutcore-1.0.203 lib/thor/task.thor
sproutcore-1.0.1003 lib/thor/task.thor