Module: SecId::Normalizable

Included in:
CIK, OCC
Defined in:
lib/sec_id/normalizable.rb

Overview

Provides normalize! class method delegation for identifiers that support normalization. Include this module in classes that implement an instance-level normalize! method.

Examples:

class MyIdentifier < Base
  include Normalizable

  def normalize!
    # implementation
  end
end

MyIdentifier.normalize!('ABC123')  #=> normalized string

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
# File 'lib/sec_id/normalizable.rb', line 19

def self.included(base)
  base.extend(ClassMethods)
end