Class: Ncn::Command::Create
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Ncn::Command::Base
Instance Method Details
#perform ⇒ Object
4 5 6 7 |
# File 'lib/ncn/command/create.rb', line 4 def perform note = repository.create(tags: params.) Draft.new(ids: [note.id], repository: repository).open_with(&Editor) end |