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