Sha256: 83fefb7b15dd079dae79f89e6e34d64735e685e4dbd51e00815c4f78a32bf963

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 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 puts "Oh, uh... Good."
      else puts "You're new around here, aren't you?"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
genspec-0.2.1 spec/support/generators/question/question_generator.rb
genspec-0.2.0 spec/support/generators/question/question_generator.rb