==(other)
click to toggle source
def ==(other)
other.is_a?(Literal) && other.literal == literal
end
eql?(other)
click to toggle source
hash()
click to toggle source
def hash
self.class.hash ^ literal.hash
end
to_json(*a)
click to toggle source
def to_json(*a)
{ class: :literal, literal: literal.inspect, location: location }.to_json(*a)
end
to_s(level = 0)
click to toggle source
def to_s(level = 0)
literal.inspect
end