Class: Lich::Gemstone::SpecialAbility

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

Overview

Represents a creature’s special ability

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ SpecialAbility

Returns a new instance of SpecialAbility.



708
709
710
711
# File 'documented/gemstone/creature.rb', line 708

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



706
707
708
# File 'documented/gemstone/creature.rb', line 706

def name
  @name
end

#noteObject

Returns the value of attribute note.



706
707
708
# File 'documented/gemstone/creature.rb', line 706

def note
  @note
end