Class: Spells::Card
- Inherits:
-
Object
- Object
- Spells::Card
- Defined in:
- lib/spells/card.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/spells/card.rb', line 3 def name @name end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/spells/card.rb', line 4 def text @text end |
Instance Method Details
#abilities ⇒ Object
6 7 8 |
# File 'lib/spells/card.rb', line 6 def abilities parsed_text.nodes_of Ability end |
#activated_abilities ⇒ Object
14 15 16 |
# File 'lib/spells/card.rb', line 14 def activated_abilities parsed_text.nodes_of ActivatedAbility end |
#triggered_abilities ⇒ Object
10 11 12 |
# File 'lib/spells/card.rb', line 10 def triggered_abilities parsed_text.nodes_of TriggeredAbility end |