Class: RetroIDL::ASN::ValueAssignment
- Inherits:
-
Object
- Object
- RetroIDL::ASN::ValueAssignment
- Defined in:
- lib/retro_idl/asn/value_assignment.rb
Instance Method Summary collapse
-
#initialize(**opts) ⇒ ValueAssignment
constructor
A new instance of ValueAssignment.
Constructor Details
#initialize(**opts) ⇒ ValueAssignment
Returns a new instance of ValueAssignment.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/retro_idl/asn/value_assignment.rb', line 4 def initialize(**opts) @parent = parent @location = opts[:location] @mod = nil @id = opts[:id] @governor = RetroIDL::ASN.const_get(opts[:governor][:class]).new(**opts[:governor]) @value = RetroIDL::ASN.const_get(opts[:value][:class]).new(**opts[:governor]) if !RetroIDL::ASN.is_identifier?(@location, @id) raise ASNError end end |