Method: DressCode::Extractor#create_doc
- Defined in:
- lib/dress_code/extractor.rb
#create_doc(match, path) ⇒ Object
must return an instance of Doc
35 36 37 38 39 40 41 42 |
# File 'lib/dress_code/extractor.rb', line 35 def create_doc(match, path) DressCode::Document.new({ :component => match[0], :prose => match[1].strip, :path => path, :relative_path => path.gsub(@base_dir, '').gsub(/^\//, '') }) end |