Module: Lich::Gemstone::Infomon::Parser::State
- Defined in:
- documented/gemstone/infomon/parser.rb
Constant Summary collapse
- Goals =
:goals- Profile =
:profile- Ready =
:ready- EnhanciveStats =
Enhancive parsing states
:enhancive_stats- EnhanciveSkills =
:enhancive_skills- EnhanciveResources =
:enhancive_resources- EnhanciveSpells =
:enhancive_spells- EnhanciveStatistics =
:enhancive_statistics
Class Method Summary collapse
Class Method Details
.enhancive_state? ⇒ Boolean
162 163 164 165 |
# File 'documented/gemstone/infomon/parser.rb', line 162 def self.enhancive_state? [EnhanciveStats, EnhanciveSkills, EnhanciveResources, EnhanciveSpells, EnhanciveStatistics].include?(@state) end |
.get ⇒ Object
167 168 169 |
# File 'documented/gemstone/infomon/parser.rb', line 167 def self.get @state end |
.set(state) ⇒ Object
151 152 153 154 155 156 157 158 159 160 |
# File 'documented/gemstone/infomon/parser.rb', line 151 def self.set(state) case state when Goals, Profile, EnhanciveStats unless @state.eql?(Ready) Lich.log "error: Infomon::Parser::State is in invalid state(#{@state}) - caller: #{caller[0]}" fail "--- Lich: error: Infomon::Parser::State is in invalid state(#{@state}) - caller: #{caller[0]}" end end @state = state end |