Class: CheckCommand

Inherits:
NeverdoneCommand show all
Defined in:
bin/nd

Instance Method Summary collapse

Methods inherited from NeverdoneCommand

#authenticate, #execute

Instance Method Details

#lazy_executeObject



137
138
139
140
141
142
143
144
145
146
# File 'bin/nd', line 137

def lazy_execute
  count = 0
  @notebook.find_notes("-intitle:s:done").reverse.each do |n|
    count += 1
    if count == number.to_i
      n.title = n.title + ' s:done'
      n.update
    end
  end
end