Class: PfrpgReaders::MiscReader::PrettyClassFeature
- Inherits:
-
Object
- Object
- PfrpgReaders::MiscReader::PrettyClassFeature
- Defined in:
- lib/pfrpg_readers/misc_reader.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(feature) ⇒ PrettyClassFeature
constructor
A new instance of PrettyClassFeature.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
141 142 143 |
# File 'lib/pfrpg_readers/misc_reader.rb', line 141 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
141 142 143 |
# File 'lib/pfrpg_readers/misc_reader.rb', line 141 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
141 142 143 |
# File 'lib/pfrpg_readers/misc_reader.rb', line 141 def type @type end |