Class: PfrpgTables::Tables::Attributes
- Inherits:
-
Object
- Object
- PfrpgTables::Tables::Attributes
- Defined in:
- lib/pfrpg_tables/tables/attributes.rb
Class Method Summary collapse
Class Method Details
.attributes ⇒ Object
2 3 4 |
# File 'lib/pfrpg_tables/tables/attributes.rb', line 2 def self.attributes ["STR", "DEX", "WIS", "CON", "CHA", "INT"] end |
.attributes_lower ⇒ Object
6 7 8 |
# File 'lib/pfrpg_tables/tables/attributes.rb', line 6 def self.attributes_lower attributes.map { |x| x.downcase } end |
.valid_attribute?(attr) ⇒ Boolean
10 11 12 |
# File 'lib/pfrpg_tables/tables/attributes.rb', line 10 def self.valid_attribute?(attr) attributes_lower.find { |x| x == attr } end |