Class: Parlour::Types::Boolean

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

Overview

Type for a boolean.

Instance Method Summary collapse

Methods inherited from Type

#hash, to_type, #to_type

Instance Method Details

#==(other) ⇒ Object



437
438
439
# File 'lib/parlour/types.rb', line 437

def ==(other)
  Boolean === other
end

#describeObject



452
453
454
# File 'lib/parlour/types.rb', line 452

def describe
  "bool"
end

#generate_rbiObject



442
443
444
# File 'lib/parlour/types.rb', line 442

def generate_rbi
  "T::Boolean"
end

#generate_rbsObject



447
448
449
# File 'lib/parlour/types.rb', line 447

def generate_rbs
  "bool"
end