Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 309 Bytes
# 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