Class: MilkTea::Types::ReflectionHandleType
- Defined in:
- lib/milk_tea/core/types/types.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
-
#initialize(name) ⇒ ReflectionHandleType
constructor
A new instance of ReflectionHandleType.
- #to_s ⇒ Object
Methods inherited from Base
#accept, #bitwise?, #boolean?, #children, #field_c_name, #float?, #integer?, #numeric?, #sendable?, #void?
Constructor Details
#initialize(name) ⇒ ReflectionHandleType
Returns a new instance of ReflectionHandleType.
64 65 66 67 68 |
# File 'lib/milk_tea/core/types/types.rb', line 64 def initialize(name) @name = name @hash = [self.class, name].hash freeze end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
76 77 78 |
# File 'lib/milk_tea/core/types/types.rb', line 76 def hash @hash end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
62 63 64 |
# File 'lib/milk_tea/core/types/types.rb', line 62 def name @name end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
70 71 72 |
# File 'lib/milk_tea/core/types/types.rb', line 70 def eql?(other) other.is_a?(ReflectionHandleType) && other.name == name end |
#to_s ⇒ Object
79 80 81 |
# File 'lib/milk_tea/core/types/types.rb', line 79 def to_s name end |