Class: Marko::Compiler

Inherits:
Object
  • Object
show all
Extended by:
Pluggable
Defined in:
lib/marko/compiler.rb

Direct Known Subclasses

Markup::Compiler

Instance Method Summary collapse

Methods included from Pluggable

plug

Instance Method Details

#call(tree, template, filename, &block) ⇒ Object



9
10
11
12
13
14
# File 'lib/marko/compiler.rb', line 9

def call(tree, template, filename, &block)
  @tree = MustbeTreeNode.(tree)
  @template = MustbeString.(template)
  @filename = MustbeString.(filename)
  @block = block
end