Sha256: 4091bf1fb320817e973b4f86d6865ae9d171142e04535c00741e540d5e63d336
Contents?: true
Size: 372 Bytes
Versions: 8
Compression:
Stored size: 372 Bytes
Contents
base = defined?(Rails) ? Rails::Generators::Base : Thor::Group class Question < base include Thor::Actions include CustomActions def do_acting act_upon "something" end def ask_question yn = ask "Are you a GOD?" case yn.downcase[0] when ?y then say "Oh, uh... Good." else say "You're new around here, aren't you?" end end end
Version data entries
8 entries across 8 versions & 1 rubygems