Method: MarkdownLint::Doc#element_line
- Defined in:
- lib/mdl/doc.rb
#element_line(element) ⇒ Object
Returns the actual source line for a given element. You can pass in an element object or an options hash here. This is useful if you need to examine the source line directly for your rule to make use of information that isn’t present in the parsed document.
142 143 144 |
# File 'lib/mdl/doc.rb', line 142 def element_line(element) @lines[element_linenumber(element) - 1] end |