Class: EvernoteLinkExtractor::FileList
- Inherits:
-
Object
- Object
- EvernoteLinkExtractor::FileList
- Defined in:
- lib/evernote_link_extractor/file_list.rb
Instance Attribute Summary collapse
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
-
#file_list ⇒ Object
readonly
Returns the value of attribute file_list.
-
#user_home ⇒ Object
readonly
Returns the value of attribute user_home.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize ⇒ FileList
constructor
A new instance of FileList.
Constructor Details
#initialize ⇒ FileList
Returns a new instance of FileList.
6 7 8 9 |
# File 'lib/evernote_link_extractor/file_list.rb', line 6 def initialize @user_home = ENV['HOME'] @file_list = [] end |
Instance Attribute Details
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
4 5 6 |
# File 'lib/evernote_link_extractor/file_list.rb', line 4 def directory @directory end |
#file_list ⇒ Object (readonly)
Returns the value of attribute file_list.
4 5 6 |
# File 'lib/evernote_link_extractor/file_list.rb', line 4 def file_list @file_list end |
#user_home ⇒ Object (readonly)
Returns the value of attribute user_home.
4 5 6 |
# File 'lib/evernote_link_extractor/file_list.rb', line 4 def user_home @user_home end |
Instance Method Details
#create ⇒ Object
11 12 13 14 15 16 |
# File 'lib/evernote_link_extractor/file_list.rb', line 11 def create directory_to_scan scan_directory check_if_files_exist file_list end |