Class: Rnote::SearchCache
- Inherits:
-
Object
- Object
- Rnote::SearchCache
show all
- Includes:
- ConfigFile
- Defined in:
- lib/rnote/persister.rb
Instance Method Summary
collapse
Methods included from ConfigFile
#modify_config, #read_config
Constructor Details
Returns a new instance of SearchCache.
200
201
202
|
# File 'lib/rnote/persister.rb', line 200
def initialize
@config_file = SEARCH_FILE
end
|
Instance Method Details
#get_last_search_guids ⇒ Object
222
223
224
225
226
|
# File 'lib/rnote/persister.rb', line 222
def get_last_search_guids
read_config do |config|
config[:last_search] || []
end
end
|
204
205
206
207
208
209
210
211
212
213
214
|
# File 'lib/rnote/persister.rb', line 204
def
<<EOF
#
# This file is auto-generated and shouldn't be edited by hand
#
# feel free to delete this file.
#
EOF
end
|
#save_last_search_guids(guids) ⇒ Object
216
217
218
219
220
|
# File 'lib/rnote/persister.rb', line 216
def save_last_search_guids(guids)
modify_config do |config|
config[:last_search] = guids
end
end
|