Sha256: 076c7632a2db75361634b06de78fec3661f70b4b746ebc9efabde3a027946d4e

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

module Ncn
  module Command
    class Open < Base
      def perform
        Draft.new(ids: ids, repository: repository).open_with(&Editor)
      end

      private

      def ids
        params.ids || [repository.last_id]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ncn-0.1.0 lib/ncn/command/open.rb