Module: Wriggler
- Defined in:
- lib/wriggler.rb,
lib/wriggler/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
5 6 7 |
# File 'lib/wriggler.rb', line 5 def content @content end |
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
5 6 7 |
# File 'lib/wriggler.rb', line 5 def directory @directory end |
Instance Method Details
#crawl(tags = [], directory = "", subdirectories = true) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/wriggler.rb', line 7 def crawl(=[], directory="", subdirectories=true) @content = Hash[.map {|k| [k, []]}] #Hash with content @subdirectories = subdirectories #Default true for the existence of subdirs @directory = directory #Directory to grab files from navigate_directory Writer.write_to_csv(@content) end |