Class: Glossarist::Designation::Prefix

Inherits:
Base
  • Object
show all
Defined in:
lib/glossarist/designation/prefix.rb

Class Method Summary collapse

Methods inherited from Base

infer_designation_type

Class Method Details

.of_yaml(hash, options = {}) ⇒ Object



10
11
12
13
14
# File 'lib/glossarist/designation/prefix.rb', line 10

def self.of_yaml(hash, options = {})
  hash["type"] = "prefix" unless hash["type"]

  super
end