Class: Metanorma::Requirements::Iso

Inherits:
Metanorma::Requirements show all
Defined in:
lib/metanorma/requirements/requirements.rb

Instance Method Summary collapse

Instance Method Details

#create(type) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/metanorma/requirements/requirements.rb', line 7

def create(type)
  case type
  when :modspec, :ogc
    ::Metanorma::Requirements::Modspec::Iso.new(parent: self)
  else ::Metanorma::Requirements::Default.new(parent: self)
  end
end