Sha256: ad0470bc12e783fb52366dec4c72ab14bbf3f842fb796f7cca142a1351e0bd39

Contents?: true

Size: 361 Bytes

Versions: 2

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

require_relative "tree_node"
require_relative "gadgets"

module Marko
  class Compiler
    extend Pluggable
    def call(tree, template, filename, &block)
      @tree = MustbeTreeNode.(tree)
      @template = MustbeString.(template)
      @filename = MustbeString.(filename)
      @block = block
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
marko-0.3.0 lib/marko/compiler.rb
marko-0.1.0 lib/marko/compiler.rb