module RowlingsWizard::ActsAsRowlingsWizard::LocalInstanceMethods
Public Instance Methods
cast_random_spell()
click to toggle source
# File lib/rowlings_wizard/acts_as_rowlings_wizard.rb, line 20 def cast_random_spell spellbook.random_spell[:name] end
cast_spell(spell_name)
click to toggle source
# File lib/rowlings_wizard/acts_as_rowlings_wizard.rb, line 16 def cast_spell(spell_name) spellbook.spell(spell_name)[:name] end
spellbook()
click to toggle source
# File lib/rowlings_wizard/acts_as_rowlings_wizard.rb, line 24 def spellbook RowlingsWizard::Spellbook.new end