Class: Pubid::Jis::Identifier::Explanation

Inherits:
Base
  • Object
show all
Defined in:
lib/pubid/jis/identifier/explanation.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#all_parts, #series

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, #all_parts?, get_parser_class, #to_s, transform, transform_explanation, transform_supplements

Constructor Details

#initialize(base: nil, number: nil, **opts) ⇒ Explanation

Returns a new instance of Explanation.



10
11
12
13
# File 'lib/pubid/jis/identifier/explanation.rb', line 10

def initialize(base: nil, number: nil, **opts)
  super(**opts.merge(number: number))
  @base = base
end

Instance Attribute Details

#baseObject

Returns the value of attribute base.



6
7
8
# File 'lib/pubid/jis/identifier/explanation.rb', line 6

def base
  @base
end

Class Method Details

.get_renderer_classObject



19
20
21
# File 'lib/pubid/jis/identifier/explanation.rb', line 19

def self.get_renderer_class
  Renderer::Explanation
end

.typeObject



15
16
17
# File 'lib/pubid/jis/identifier/explanation.rb', line 15

def self.type
  { key: :explanation, title: "Explanation", short: "EXPL" }
end