Module: SecId::Normalizable::ClassMethods

Defined in:
lib/sec_id/normalizable.rb

Overview

Class methods added when Normalizable is included.

Instance Method Summary collapse

Instance Method Details

#normalize!(id) ⇒ String

Normalizes the identifier to its canonical format.

Parameters:

  • id (String, #to_s)

    the identifier to normalize

Returns:

  • (String)

    the normalized identifier

Raises:



30
31
32
# File 'lib/sec_id/normalizable.rb', line 30

def normalize!(id)
  new(id).normalize!
end