class Object
Constants
- AnchorRx
- CommentBlockRx
- CommentLineRx
- ImageRx
- RexRx
- SectitleRx
- XrefRx
Public Instance Methods
add_heading(subsection, url, level)
click to toggle source
# File lib/postprocessors/fulltext_search.rb, line 11 def add_heading(subsection, url, level) id = subsection.at(level).attr('id') sub_url = url + '#' + id @json << Search.add_to_index(sub_url, id, subsection.at(level).text, subsection.text) end
trim(s)
click to toggle source
# File lib/extensions/requirement_appendix.rb, line 21 def trim(s) s.gsub!(/chapters\//, '') s.gsub!(/(\.adoc|\.md|\.html)/, '') end