Class: Marko::Validators::LostIndex
- Inherits:
-
Object
- Object
- Marko::Validators::LostIndex
- Defined in:
- lib/marko/validators/lost_index.rb
Overview
Lost parent validator
Instance Method Summary collapse
Instance Method Details
#call(tree) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/marko/validators/lost_index.rb', line 9 def call(tree) faulty = tree.drop(1) .select{ it.lost_order_index.any? } faulty.map do |e| = "lost order_index #{e.lost_order_index.join(', ')} in #{e.markup}" Marko::ValidatorError.new() end end |