module SentenceDance::Method

Public Instance Methods

dictionary() click to toggle source
# File lib/sentence_dance/method.rb, line 3
def dictionary
  SentenceDance::Dictionary.instance
end
question() click to toggle source
# File lib/sentence_dance/method.rb, line 7
def question
  sentence, translated = dictionary.list.sample
  SentenceDance::Question.new sentence, translated
end