Class: Pubid::Jis::Identifier::Explanation
- Defined in:
- lib/pubid/jis/identifier/explanation.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(base: nil, number: nil, **opts) ⇒ Explanation
constructor
A new instance of Explanation.
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
#base ⇒ Object
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_class ⇒ Object
19 20 21 |
# File 'lib/pubid/jis/identifier/explanation.rb', line 19 def self.get_renderer_class Renderer::Explanation end |
.type ⇒ Object
15 16 17 |
# File 'lib/pubid/jis/identifier/explanation.rb', line 15 def self.type { key: :explanation, title: "Explanation", short: "EXPL" } end |