Snippet
Returns a formatted excerpt of those passage(s) from the input where the error occurred.
begin
# ...
rescue Enolib::Error => e
e.snippet
# returns something like ...
#
# Line | Content
# 1 |
# * 2 | # a
# * 3 | ## b
# > 4 | ### c < a
# 5 |
end
Next page: Cursor