Class: AddCommand

Inherits:
NeverdoneCommand show all
Defined in:
bin/nd

Instance Method Summary collapse

Methods inherited from NeverdoneCommand

#authenticate, #execute

Instance Method Details

#lazy_executeObject



122
123
124
125
126
127
128
129
130
# File 'bin/nd', line 122

def lazy_execute
  text = '' if not text
  t = title.join(' ')
  if list
    @notebook.add_note("#{t} l:#{list.gsub(' ', '_')}", text)
  else
    @notebook.add_note(t, text)
  end
end