Class: Documentize::Collector
- Inherits:
-
Object
- Object
- Documentize::Collector
- Defined in:
- lib/documentize/collector.rb
Constant Summary collapse
- REGEX =
{ args: /(.*?)[\(|\s](.*?)\)/, header: /^require/, block: /\sdo[\s\|.*]/, inline_do: /\sdo.*?end/, flow: /^(if|unless|while|for).*?/, is_class: /^class/, is_method: /^def/, is_module: /^module/, comment: /^#/ }
Instance Method Summary collapse
Instance Method Details
#run(lines) ⇒ Object
16 17 18 19 |
# File 'lib/documentize/collector.rb', line 16 def run(lines) queue, header = remove_headers(lines) [build(queue), header] end |