Sha256: 5ceedde3258a15f3312a033bba56149103c40fccfec81b04d15204e7cee741be

Contents?: true

Size: 312 Bytes

Versions: 25

Compression:

Stored size: 312 Bytes

Contents

class Template
  class Node
    class Template < Node
      def initialize(parts)
        @parts = parts.map { |part| ::Template::Node::Part.new(part) }
      end

      def evaluate(**args)
        io = args.fetch(:io)

        @parts.each { |part| io.print(part.evaluate(**args)) }
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
template-ruby-0.6.3 lib/template/node/template.rb
template-ruby-0.6.2 lib/template/node/template.rb
template-ruby-0.6.1 lib/template/node/template.rb
template-ruby-0.6.0 lib/template/node/template.rb
template-ruby-0.5.6 lib/template/node/template.rb
language-ruby-0.5.6 lib/template/node/template.rb
code-ruby-0.5.6 lib/template/node/template.rb
template-ruby-0.5.5 lib/template/node/template.rb
language-ruby-0.5.5 lib/template/node/template.rb
code-ruby-0.5.5 lib/template/node/template.rb
template-ruby-0.5.4 lib/template/node/template.rb
language-ruby-0.5.4 lib/template/node/template.rb
code-ruby-0.5.4 lib/template/node/template.rb
template-ruby-0.5.3 lib/template/node/template.rb
language-ruby-0.5.3 lib/template/node/template.rb
code-ruby-0.5.3 lib/template/node/template.rb
template-ruby-0.5.2 lib/template/node/template.rb
language-ruby-0.5.2 lib/template/node/template.rb
code-ruby-0.5.2 lib/template/node/template.rb
language-ruby-0.5.1 lib/template/node/template.rb