Class: Marko::Markup::Inspector
- Inherits:
-
Object
- Object
- Marko::Markup::Inspector
show all
- Defined in:
- lib/marko/markup/validator.rb
Instance Method Summary
collapse
Instance Method Details
#call(tree) ⇒ Object
27
28
29
|
# File 'lib/marko/markup/validator.rb', line 27
def call(tree)
select(tree).then{ report(_1) }
end
|
#report(errs) ⇒ Object
35
36
37
|
# File 'lib/marko/markup/validator.rb', line 35
def report(errs)
fail "the abstract method must be overriden"
end
|
#select(tree) ⇒ Object
31
32
33
|
# File 'lib/marko/markup/validator.rb', line 31
def select(tree)
fail "the abstract method must be overriden"
end
|