Module: ActiveRecall::ItemMethods
- Defined in:
- lib/active_recall/item_methods.rb
Instance Method Summary collapse
Instance Method Details
#right_answer_for!(item) ⇒ Object
5 6 7 |
# File 'lib/active_recall/item_methods.rb', line 5 def right_answer_for!(item) deck.items.find_by(source_id: item.id).right! end |
#score!(grade, item) ⇒ Object
13 14 15 |
# File 'lib/active_recall/item_methods.rb', line 13 def score!(grade, item) deck.items.find_by(source_id: item.id).score!(grade) end |
#wrong_answer_for!(item) ⇒ Object
9 10 11 |
# File 'lib/active_recall/item_methods.rb', line 9 def wrong_answer_for!(item) deck.items.find_by(source_id: item.id).wrong! end |