==(other)
click to toggle source
def ==(other)
other.is_a?(Alias) && other.name == name
end
eql?(other)
click to toggle source
hash()
click to toggle source
def hash
self.class.hash ^ name.hash
end
map_type_name()
click to toggle source
def map_type_name
Alias.new(
name: yield(name, location, self),
location: location
)
end
to_json(*a)
click to toggle source
def to_json(*a)
{ class: :alias, name: name, location: location }.to_json(*a)
end
to_s(level = 0)
click to toggle source
def to_s(level = 0)
name.to_s
end