Object
# File rbs-1.4.0/lib/rbs/type_name.rb, line 23
def ==(other)
other.is_a?(self.class) && other.namespace == namespace && other.name == name
end
# File rbs-1.4.0/lib/rbs/type_name.rb, line 53
def absolute!
self.class.new(namespace: namespace.absolute!, name: name)
end
# File rbs-1.4.0/lib/rbs/type_name.rb, line 57
def absolute?
namespace.absolute?
end
# File rbs-1.4.0/lib/rbs/type_name.rb, line 49
def alias?
kind == :alias
end
# File rbs-1.4.0/lib/rbs/type_name.rb, line 45
def class?
kind == :class
end
# File rbs-1.4.0/lib/rbs/type_name.rb, line 29
def hash
self.class.hash ^ namespace.hash ^ name.hash
end
# File rbs-1.4.0/lib/rbs/type_name.rb, line 65
def interface?
kind == :interface
end
# File rbs-1.4.0/lib/rbs/type_name.rb, line 61
def relative!
self.class.new(namespace: namespace.relative!, name: name)
end
# File rbs-1.4.0/lib/rbs/type_name.rb, line 37
def to_json(state = _ = nil)
to_s.to_json(state)
end
# File rbs-1.4.0/lib/rbs/type_name.rb, line 41
def to_namespace
namespace.append(self.name)
end