Class: RetroIDL::ASN::BuiltinValue
- Inherits:
-
Object
- Object
- RetroIDL::ASN::BuiltinValue
- Defined in:
- lib/retro_idl/asn/builtin_value.rb
Overview
BuiltinValue aggregation
X.680 section 17.2
Instance Attribute Summary collapse
-
#value ⇒ Array, ...
readonly
return the Ruby native representation of this BuiltinType.
Instance Method Summary collapse
-
#initialize(**opts) ⇒ BuiltinValue
constructor
A new instance of BuiltinValue.
- #link(mod, stack) ⇒ Object
-
#to_s ⇒ String
Convert object to ASN.1 syntax representation.
Constructor Details
#initialize(**opts) ⇒ BuiltinValue
Returns a new instance of BuiltinValue.
25 26 27 28 29 30 31 |
# File 'lib/retro_idl/asn/builtin_value.rb', line 25 def initialize(**opts) @location = opts[:location] @mod = nil @value = opts[:value] end |
Instance Attribute Details
#value ⇒ Array, ... (readonly)
return the Ruby native representation of this BuiltinType
38 39 40 |
# File 'lib/retro_idl/asn/builtin_value.rb', line 38 def value @value end |
Instance Method Details
#link(mod, stack) ⇒ Object
47 48 49 |
# File 'lib/retro_idl/asn/builtin_value.rb', line 47 def link(mod, stack) @mod = mod end |
#to_s ⇒ String
Convert object to ASN.1 syntax representation
41 42 43 44 45 |
# File 'lib/retro_idl/asn/builtin_value.rb', line 41 def to_s "#{@value}" end |