Sha256: 4f959e3fda044ecfc88b38ae657ccb4a712bfe845cd00743df7d843b16278852
Contents?: true
Size: 569 Bytes
Versions: 20
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true require_relative "expression" require_relative "../utilities" module Glossarist module Designation class Abbreviation < Expression include Glossarist::Utilities::Enum register_enum :type, Glossarist::GlossaryDefinition::ABBREVIATION_TYPES attr_accessor :international def to_h type_hash = { "type" => "abbreviation", "international" => international, } type_hash[type.to_s] = true if type super().merge(type_hash).compact end end end end
Version data entries
20 entries across 20 versions & 1 rubygems