ruby: decode symbol type.