Class: Lich::Gemstone::SpecialAbility

Inherits:
Object
  • Object
show all
Defined in:
documented/gemstone/creature.rb

Overview

Represents a special ability for a creature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ SpecialAbility

Returns a new instance of SpecialAbility.



608
609
610
611
# File 'documented/gemstone/creature.rb', line 608

def initialize(data)
  @name = data[:name]
  @note = data[:note]
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



606
607
608
# File 'documented/gemstone/creature.rb', line 606

def name
  @name
end

#noteObject

Returns the value of attribute note.



606
607
608
# File 'documented/gemstone/creature.rb', line 606

def note
  @note
end