class Parlour::Types::Type
The top-level, abstract class for a generalised type. All of the other types inherit from this. Do not instantiate.
Public Class Methods
to_type(type_like)
click to toggle source
# File lib/parlour/types.rb, line 23 def self.to_type(type_like) if type_like.is_a?(String) Raw.new(type_like) else type_like end end
Public Instance Methods
describe()
click to toggle source
# File lib/parlour/types.rb, line 41 def describe; end
generate_rbi()
click to toggle source
# File lib/parlour/types.rb, line 17 def generate_rbi; end
generate_rbs()
click to toggle source
# File lib/parlour/types.rb, line 20 def generate_rbs; end
hash()
click to toggle source
# File lib/parlour/types.rb, line 36 def hash [self.class, *instance_variables.map { |x| instance_variable_get(x).hash }].hash end
to_type(type_like)
click to toggle source
# File lib/parlour/types.rb, line 32 def to_type(type_like) Type.to_type(type_like) end