Sha256: e7e3eb7b0fd4ff4583c877f3c48bddd038b2b7ade5bbd711ece53507a94eedb5
Contents?: true
Size: 391 Bytes
Versions: 2
Compression:
Stored size: 391 Bytes
Contents
# frozen_string_literal: true require_relative "tree_node" module Marko # The strategy of tree validation class Validator extend Pluggable # @param tree [TreeNode] # @param block [&block] proc {|event, payload|} # @return [Array<String>] errors array def call(tree, &block) fail "the abstract method must be overriden" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
marko-0.3.0 | lib/marko/validator.rb |
marko-0.1.0 | lib/marko/validator.rb |