Class: Spellbook
- Inherits:
-
Object
- Object
- Spellbook
- Defined in:
- lib/books.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#spell ⇒ Object
Returns the value of attribute spell.
Instance Method Summary collapse
-
#initialize(name, spell) ⇒ Spellbook
constructor
A new instance of Spellbook.
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
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/books.rb', line 2 def name @name end |
#spell ⇒ Object
Returns the value of attribute spell.
2 3 4 |
# File 'lib/books.rb', line 2 def spell @spell end |