Class: MilkTea::Types::TypeType

Inherits:
Base
  • Object
show all
Defined in:
lib/milk_tea/core/types/types.rb

Instance Method Summary collapse

Methods inherited from Base

#accept, #bitwise?, #boolean?, #children, #field_c_name, #float?, #integer?, #numeric?, #sendable?, #void?

Constructor Details

#initializeTypeType

Returns a new instance of TypeType.



91
92
93
# File 'lib/milk_tea/core/types/types.rb', line 91

def initialize
  freeze
end

Instance Method Details

#eql?(other) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)


95
96
97
# File 'lib/milk_tea/core/types/types.rb', line 95

def eql?(other)
  other.is_a?(TypeType)
end

#hashObject



101
102
103
# File 'lib/milk_tea/core/types/types.rb', line 101

def hash
  self.class.hash
end

#to_sObject



106
107
108
# File 'lib/milk_tea/core/types/types.rb', line 106

def to_s
  "type"
end