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

Version Path
genspec-0.3.0 spec/support/generators/question/question_generator.rb
genspec-0.2.8 spec/support/generators/question/question_generator.rb
genspec-0.2.7 spec/support/generators/question/question_generator.rb
genspec-0.2.6 spec/support/generators/question/question_generator.rb
genspec-0.2.5 spec/support/generators/question/question_generator.rb
genspec-0.2.4 spec/support/generators/question/question_generator.rb
genspec-0.2.3 spec/support/generators/question/question_generator.rb
genspec-0.2.2 spec/support/generators/question/question_generator.rb