Method: Dphil::Character#get_state

Defined in:
lib/dphil/character.rb

#get_state(symbol) ⇒ String?

Get state from symbol

Parameters:

  • symbol (String)

    a symbol

Returns:

  • (String, nil)

    the associated text-state, or Nil if not found



113
114
115
# File 'lib/dphil/character.rb', line 113

def get_state(symbol)
  states[normalize_text(symbol)]
end