Module: CharacterStatesHelper
- Defined in:
- app/helpers/character_states_helper.rb
Instance Method Summary collapse
- #character_state_tag(character_state) ⇒ Object
- #expanded_character_state_tag(character_state) ⇒ Object
Instance Method Details
#character_state_tag(character_state) ⇒ Object
3 4 5 6 |
# File 'app/helpers/character_states_helper.rb', line 3 def character_state_tag(character_state) return nil if character_state.nil? [character_state.label, ':', character_state.name].join(' ') end |
#expanded_character_state_tag(character_state) ⇒ Object
8 9 10 11 |
# File 'app/helpers/character_states_helper.rb', line 8 def (character_state) return nil if character_state.nil? [character_state.descriptor.name, ':', character_state_tag(character_state)].join(' ') end |