Method: JsDuck::Format::HtmlStack#open
- Defined in:
- lib/jsduck/format/html_stack.rb
#open(s) ⇒ Object
Scans an opening tag in HTML using the passed in StringScanner.
23 24 25 |
# File 'lib/jsduck/format/html_stack.rb', line 23 def open(s) s.scan(/</) + push_tag(s.scan(/\w+/)) + s.scan_until(/>|\Z/) end |