Class: Marko::Validator

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

Overview

The strategy of tree validation

Direct Known Subclasses

Markup::Validator

Instance Method Summary collapse

Methods included from Pluggable

plug

Instance Method Details

#call(tree, &block) ⇒ Array<String>

Returns errors array.

Parameters:

  • tree (TreeNode)
  • block (&block)

    proc {|event, payload|}

Returns:

  • (Array<String>)

    errors array



14
15
16
# File 'lib/marko/validator.rb', line 14

def call(tree, &block)
  fail "the abstract method must be overriden"
end