Class: RASN1::Model::BaseElem
- Inherits:
-
Struct
- Object
- Struct
- RASN1::Model::BaseElem
- Defined in:
- lib/rasn1/model.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#name ⇒ Object
Returns the value of attribute name.
-
#proc ⇒ Object
Returns the value of attribute proc.
Instance Method Summary collapse
-
#initialize(name, proc, content) ⇒ BaseElem
constructor
A new instance of BaseElem.
Constructor Details
#initialize(name, proc, content) ⇒ BaseElem
Returns a new instance of BaseElem.
76 77 78 79 |
# File 'lib/rasn1/model.rb', line 76 def initialize(name, proc, content) check_duplicates(content.map(&:name) + [name]) unless content.nil? super end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
72 73 74 |
# File 'lib/rasn1/model.rb', line 72 def content @content end |
#name ⇒ Object
Returns the value of attribute name
72 73 74 |
# File 'lib/rasn1/model.rb', line 72 def name @name end |
#proc ⇒ Object
Returns the value of attribute proc
72 73 74 |
# File 'lib/rasn1/model.rb', line 72 def proc @proc end |