Class: MilkTea::Types::Opaque
- Defined in:
- lib/milk_tea/core/types/types.rb
Instance Attribute Summary collapse
-
#external ⇒ Object
readonly
Returns the value of attribute external.
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#linkage_name ⇒ Object
readonly
Returns the value of attribute linkage_name.
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
-
#initialize(name, module_name: nil, external: false, linkage_name: nil) ⇒ Opaque
constructor
A new instance of Opaque.
- #to_s ⇒ Object
Methods inherited from Base
#accept, #bitwise?, #boolean?, #children, #field_c_name, #float?, #integer?, #numeric?, #sendable?, #void?
Constructor Details
#initialize(name, module_name: nil, external: false, linkage_name: nil) ⇒ Opaque
Returns a new instance of Opaque.
1196 1197 1198 1199 1200 1201 1202 |
# File 'lib/milk_tea/core/types/types.rb', line 1196 def initialize(name, module_name: nil, external: false, linkage_name: nil) @name = name @module_name = module_name @external = external @linkage_name = linkage_name @hash = [self.class, name, module_name, external, linkage_name].hash end |
Instance Attribute Details
#external ⇒ Object (readonly)
Returns the value of attribute external.
1194 1195 1196 |
# File 'lib/milk_tea/core/types/types.rb', line 1194 def external @external end |
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
1214 1215 1216 |
# File 'lib/milk_tea/core/types/types.rb', line 1214 def hash @hash end |
#linkage_name ⇒ Object (readonly)
Returns the value of attribute linkage_name.
1194 1195 1196 |
# File 'lib/milk_tea/core/types/types.rb', line 1194 def linkage_name @linkage_name end |
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name.
1194 1195 1196 |
# File 'lib/milk_tea/core/types/types.rb', line 1194 def module_name @module_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
1194 1195 1196 |
# File 'lib/milk_tea/core/types/types.rb', line 1194 def name @name end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
1204 1205 1206 1207 1208 1209 1210 |
# File 'lib/milk_tea/core/types/types.rb', line 1204 def eql?(other) other.class == self.class && other.name == name && other.module_name == module_name && other.external == external && other.linkage_name == linkage_name end |
#to_s ⇒ Object
1216 1217 1218 |
# File 'lib/milk_tea/core/types/types.rb', line 1216 def to_s module_name ? "#{module_name}.#{name}" : name end |