Sha256: 84e2d0d87e442bb6c220a2eea2bd41ba2ed724a00a377d813e05f9990f2c1433

Contents?: true

Size: 491 Bytes

Versions: 34

Compression:

Stored size: 491 Bytes

Contents

module Liquidscript
  module Compiler
    class ICR < Base
      class Heredoc

        attr_reader :name
        attr_accessor :body

        include Liquidscript::ICR::Representable

        def initialize(name, interpolate)
          @name        = name
          @interpolate = interpolate
          @body        = []
        end

        def interpolate?
          !!@interpolate
        end

        def to_a
          [:heredoc, @name, @body]
        end

      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
liquidscript-0.11.0 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.11.0.rc1 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.10.4 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.10.3 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.10.2 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.10.1 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.10.0 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.9.2 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.9.1 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.9.0 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.8.2 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.8.1 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.8.0 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.7.12 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.7.11 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.7.10 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.7.9 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.7.8 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.7.7 lib/liquidscript/compiler/icr/heredoc.rb
liquidscript-0.7.6 lib/liquidscript/compiler/icr/heredoc.rb