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.
70 71 72 73 |
# File 'lib/rasn1/model.rb', line 70 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
66 67 68 |
# File 'lib/rasn1/model.rb', line 66 def content @content end |
#name ⇒ Object
Returns the value of attribute name
66 67 68 |
# File 'lib/rasn1/model.rb', line 66 def name @name end |
#proc ⇒ Object
Returns the value of attribute proc
66 67 68 |
# File 'lib/rasn1/model.rb', line 66 def proc @proc end |