Class: Pubid::Iec::Transformer

Inherits:
Core::Transformer
  • Object
show all
Defined in:
lib/pubid/iec/transformer.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTransformer

Returns a new instance of Transformer.



3
4
5
6
7
8
9
# File 'lib/pubid/iec/transformer.rb', line 3

def initialize
  super

  rule(database: "DB") do
    { database: true }
  end
end

Class Method Details

.get_amendment_classObject



12
13
14
# File 'lib/pubid/iec/transformer.rb', line 12

def get_amendment_class
  Identifier::Amendment
end

.get_corrigendum_classObject



16
17
18
# File 'lib/pubid/iec/transformer.rb', line 16

def get_corrigendum_class
  Identifier::Corrigendum
end