Sha256: 56278abfe3b37c61f087cc26ced92c72ed311128d3dda70f40f30d84c4792fca

Contents?: true

Size: 284 Bytes

Versions: 11

Compression:

Stored size: 284 Bytes

Contents

module Liquid
  class Token < String
    attr_reader :line_number

    def initialize(content, line_number)
      super(content)
      @line_number = line_number
    end

    def raw
      "<raw>"
    end

    def child(string)
      Token.new(string, @line_number)
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
locomotivecms-liquid-4.0.0 lib/liquid/token.rb
liquid-3.0.6 lib/liquid/token.rb
liquid-3.0.5 lib/liquid/token.rb
liquid-3.0.4 lib/liquid/token.rb
liquid-3.0.3 lib/liquid/token.rb
liquid-3.0.2 lib/liquid/token.rb
locomotivecms-liquid-4.0.0.alpha2 lib/liquid/token.rb
locomotivecms-liquid-4.0.0.alpha1 lib/liquid/token.rb
locomotivecms-liquid-4.0.0.alpha lib/liquid/token.rb
liquid-3.0.1 lib/liquid/token.rb
liquid-3.0.0 lib/liquid/token.rb