Class: RASN2::Model::BaseElem
- Inherits:
-
Struct
- Object
- Struct
- RASN2::Model::BaseElem
- Defined in:
- lib/rasn2/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.
98 99 100 101 |
# File 'lib/rasn2/model.rb', line 98 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
94 95 96 |
# File 'lib/rasn2/model.rb', line 94 def content @content end |
#name ⇒ Object
Returns the value of attribute name
94 95 96 |
# File 'lib/rasn2/model.rb', line 94 def name @name end |
#proc ⇒ Object
Returns the value of attribute proc
94 95 96 |
# File 'lib/rasn2/model.rb', line 94 def proc @proc end |