Module: PfrpgImport::CaseHelpers
- Included in:
- FeatureWriter, HeroclassFacts, HeroclassParser, HeroclassWriter, Level, LevelBase, LevelWriter, SpellWriter
- Defined in:
- lib/pfrpg_import/case_helpers.rb
Defined Under Namespace
Classes: String
Instance Method Summary collapse
Instance Method Details
#arrayify(string_list) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/pfrpg_import/case_helpers.rb', line 24 def arrayify(string_list) str = "[" string_list.each do |b| str = str + "#{b}," end return str + ']' end |
#camelized_title(title) ⇒ Object
16 17 18 |
# File 'lib/pfrpg_import/case_helpers.rb', line 16 def camelized_title(title) title.camelize.gsub(' ','') end |
#underscored_title(title) ⇒ Object
20 21 22 |
# File 'lib/pfrpg_import/case_helpers.rb', line 20 def underscored_title(title) title.underscore end |