Method: FuzzyNotes::Notes#initialize
- Defined in:
- lib/fuzzy_notes/notes.rb
#initialize(params = {}) ⇒ Notes
Returns a new instance of Notes.
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/fuzzy_notes/notes.rb', line 23 def initialize(params = {}) parse_init_params(params) FuzzyNotes::Log.init_log(@log_level, @color) log.debug "init params: \n#{inspect_instance_vars}" @note_paths = prune_invalid_note_paths! finder = FuzzyNotes::FuzzyFinder.new(@note_paths, { :keywords => @keywords, :extensions => @valid_extensions, :full_text_search => params[:full_text_search] }) @all_notes, @matching_notes = finder.files_matching_extension, finder.files_matching_all @cipher = FuzzyNotes::Cipher.new end |