Object
# File rbs-2.1.0/lib/rbs/types.rb, line 47 def ==(other) other.is_a?(self.class) end
# File rbs-2.1.0/lib/rbs/types.rb, line 51 def hash self.class.hash end
# File rbs-2.1.0/lib/rbs/types.rb, line 62 def to_json(state = _ = nil) klass = to_s.to_sym { class: klass, location: location }.to_json(state) end
# File rbs-2.1.0/lib/rbs/types.rb, line 67 def to_s(level = 0) case self when Types::Bases::Bool 'bool' when Types::Bases::Void 'void' when Types::Bases::Any 'untyped' when Types::Bases::Nil 'nil' when Types::Bases::Top 'top' when Types::Bases::Bottom 'bot' when Types::Bases::Self 'self' when Types::Bases::Instance 'instance' when Types::Bases::Class 'class' else raise "Unexpected base type: #{inspect}" end end