Module: Glossarist::Designation

Defined in:
lib/glossarist/designation.rb,
lib/glossarist/designation/base.rb,
lib/glossarist/designation/symbol.rb,
lib/glossarist/designation/expression.rb,
lib/glossarist/designation/abbreviation.rb,
lib/glossarist/designation/grammar_info.rb,
lib/glossarist/designation/letter_symbol.rb,
lib/glossarist/designation/graphical_symbol.rb

Defined Under Namespace

Classes: Abbreviation, Base, Expression, GrammarInfo, GraphicalSymbol, LetterSymbol, Symbol

Constant Summary collapse

SERIALIZED_TYPES =

Bi-directional class-to-string mapping for STI-like serialization.

{
  Expression => "expression",
  Symbol => "symbol",
  Abbreviation => "abbreviation",
  GraphicalSymbol => "graphical_symbol",
  LetterSymbol => "letter_symbol",
}
.tap { |h| h.merge!(h.invert) }
.freeze