Class: Ncn::Command::Create

Inherits:
Base
  • Object
show all
Defined in:
lib/ncn/command/create.rb

Instance Attribute Summary

Attributes inherited from Base

#params, #repository

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Ncn::Command::Base

Instance Method Details

#performObject



4
5
6
7
# File 'lib/ncn/command/create.rb', line 4

def perform
  note = repository.create(tags: params.tags)
  Draft.new(ids: [note.id], repository: repository).open_with(&Editor)
end