Class: Parlour::Types::Self

Inherits:
Type
  • Object
show all
Defined in:
lib/parlour/types.rb

Overview

Type equivalent to the receiver.

Instance Method Summary collapse

Methods inherited from Type

#hash, to_type, #to_type

Instance Method Details

#==(other) ⇒ Object



460
461
462
# File 'lib/parlour/types.rb', line 460

def ==(other)
  Self === other
end

#describeObject



475
476
477
# File 'lib/parlour/types.rb', line 475

def describe
  "self"
end

#generate_rbiObject



465
466
467
# File 'lib/parlour/types.rb', line 465

def generate_rbi
  "T.self_type"
end

#generate_rbsObject



470
471
472
# File 'lib/parlour/types.rb', line 470

def generate_rbs
  "self"
end