module Rip::Nodes
  class Character < Base
    attr_reader :data

    def initialize(location, data)
      super(location)
      @data = data.to_sym
    end

    def ==(other)
      super &&
        (data == other.data)
    end

    def to_debug(level = 0)
      [
        [ level, "#{super.last.last} (#{data})" ]
      ]
    end
  end
end

module Rip::Nodes
  class Character < Base
    attr_reader :data

    def initialize(location, data)
      super(location)
      @data = data.to_s
    end

    def ==(other)
      super &&
        (data == other.data)
    end

    def to_debug(level = 0)
      [
        [ level, "#{super.last.last} (#{data})" ]
      ]
    end
  end
end

Fix potential memory leak introduced in commit 2b98f98beb
Fix potential memory leak introduced in commit 2b98f98beb
