Class: PfrpgReaders::MiscReader::PrettyClassFeature

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feature) ⇒ PrettyClassFeature

Returns a new instance of PrettyClassFeature.



142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'lib/pfrpg_readers/misc_reader.rb', line 142

def initialize(feature)
  if feature.respond_to? 'feature'
    f = feature.feature
  else
    f = feature
  end
  # TODO this belogns on the feature object
  @type         = feature.feature_type
  @category     = f.category
  @name         = f.display_name
  @description  = f.description
  @special = feature.special
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



141
142
143
# File 'lib/pfrpg_readers/misc_reader.rb', line 141

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



141
142
143
# File 'lib/pfrpg_readers/misc_reader.rb', line 141

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



141
142
143
# File 'lib/pfrpg_readers/misc_reader.rb', line 141

def type
  @type
end