Permalink
Browse files

refactoring readers

  • Loading branch information...
1 parent 90118b2 commit 2ff303e2532a9d9a03ca983e46ff477f610b127b @msuarz msuarz committed Aug 28, 2012
Showing with 23 additions and 0 deletions.
  1. +1 −0 docs/github/settings.coffee
  2. +12 −0 src/readers/code.coffee
  3. +10 −0 src/readers/files.coffee
@@ -3,5 +3,6 @@
source: 'github'
repo: 'git://github.com/limadelic/frankendoc.wiki.git'
root: 'frankendoc'
+ type: '.md'
code:
root: 'docs/src'
View
@@ -0,0 +1,12 @@
+{ Files } = require 'files'
+
+class @Code
+
+ constructor: ->
+ @code = []
+ @files = new @Files
+ ext: /\.(js|coffee)$/
+ add: (file) => @code.push file
+
+ read: -> @files.read settings.code.root
+
View
@@ -54,3 +54,13 @@ class @Files
@find_files settings.code.root, /\.(js|coffee)$/, =>
@code.push @file
+class Code
+
+ constructor: ->
+ @code = []
+ @files = new @File
+ ext: /\.(js|coffee)$/
+ add: (file) => @code.push file
+
+ read: -> @files.read settings.code.root
+

0 comments on commit 2ff303e

Please sign in to comment.