Module: RowlingsWizard::ActsAsRowlingsWizard::LocalInstanceMethods
- Defined in:
- lib/rowlings_wizard/acts_as_rowlings_wizard.rb
Instance Method Summary collapse
Instance Method Details
#cast_random_spell ⇒ Object
20 21 22 |
# File 'lib/rowlings_wizard/acts_as_rowlings_wizard.rb', line 20 def cast_random_spell spellbook.random_spell[:name] end |
#cast_spell(spell_name) ⇒ Object
16 17 18 |
# File 'lib/rowlings_wizard/acts_as_rowlings_wizard.rb', line 16 def cast_spell(spell_name) spellbook.spell(spell_name)[:name] end |
#spellbook ⇒ Object
24 25 26 |
# File 'lib/rowlings_wizard/acts_as_rowlings_wizard.rb', line 24 def spellbook RowlingsWizard::Spellbook.new end |