Class: MilkTea::Types::Handle

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)


722
723
724
# File 'lib/milk_tea/core/types/types.rb', line 722

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

#hashObject



728
729
730
# File 'lib/milk_tea/core/types/types.rb', line 728

def hash
  self.class.hash
end

#linkage_nameObject



718
719
720
# File 'lib/milk_tea/core/types/types.rb', line 718

def linkage_name
  "void*"
end

#module_nameObject



714
715
716
# File 'lib/milk_tea/core/types/types.rb', line 714

def module_name
  nil
end

#nameObject



710
711
712
# File 'lib/milk_tea/core/types/types.rb', line 710

def name
  "Handle"
end

#to_sObject



733
734
735
# File 'lib/milk_tea/core/types/types.rb', line 733

def to_s
  "Handle"
end