Sha256: 3cd70345454753fe191640a05a9bf729185f7f1cb2ddfc70ef0fe74a03760e6a

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

base = GenSpec.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

2 entries across 2 versions & 1 rubygems

Version Path
genspec-0.3.2 spec/support/generators/question/question_generator.rb
genspec-0.3.1 spec/support/generators/question/question_generator.rb