Class: Spellbook

Inherits:
Object
  • Object
show all
Defined in:
lib/books.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, spell) ⇒ Spellbook

Returns a new instance of Spellbook.



4
5
6
7
# File 'lib/books.rb', line 4

def initialize (name, spell)
	@name = name
	@spell = spell
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/books.rb', line 2

def name
  @name
end

#spellObject

Returns the value of attribute spell.



2
3
4
# File 'lib/books.rb', line 2

def spell
  @spell
end