Sha256: d6e3931e9ede545fedb7fcc11fbd579724e99862050e810197d09b11a6680782
Contents?: true
Size: 437 Bytes
Versions: 3
Compression:
Stored size: 437 Bytes
Contents
module NxtSchema module Node class DefaultValueEvaluator def initialize(node, evaluator_or_value) @node = node @evaluator_or_value = evaluator_or_value end attr_reader :node, :evaluator_or_value def call if evaluator_or_value.respond_to?(:call) Callable.new(evaluator_or_value).call(node) else evaluator_or_value end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems