Class: MilkTea::Types::Error

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?

Instance Method Details

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

Returns:

  • (Boolean)


236
237
238
# File 'lib/milk_tea/core/types/types.rb', line 236

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

#hashObject



242
243
244
# File 'lib/milk_tea/core/types/types.rb', line 242

def hash
  self.class.hash
end

#to_sObject



246
247
248
# File 'lib/milk_tea/core/types/types.rb', line 246

def to_s
  "<error>"
end