Class: RASN1::Model::BaseElem
- Inherits:
-
Object
- Object
- RASN1::Model::BaseElem
- Defined in:
- lib/rasn1/model.rb
Overview
Instance Attribute Summary collapse
- #block ⇒ Object readonly
- #content ⇒ Object readonly
- #name ⇒ Object
- #proc ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(name, proc, content, &block) ⇒ BaseElem
constructor
A new instance of BaseElem.
Constructor Details
#initialize(name, proc, content, &block) ⇒ BaseElem
Returns a new instance of BaseElem.
94 95 96 97 98 99 100 |
# File 'lib/rasn1/model.rb', line 94 def initialize(name, proc, content, &block) @name = name @proc = proc @content = content @block = block check_duplicates(content.map(&:name) + [name]) unless content.nil? end |
Instance Attribute Details
#block ⇒ Object (readonly)
89 90 91 |
# File 'lib/rasn1/model.rb', line 89 def block @block end |
#content ⇒ Object (readonly)
89 90 91 |
# File 'lib/rasn1/model.rb', line 89 def content @content end |
#name ⇒ Object
88 89 90 |
# File 'lib/rasn1/model.rb', line 88 def name @name end |
#proc ⇒ Object (readonly)
89 90 91 |
# File 'lib/rasn1/model.rb', line 89 def proc @proc end |