Sha256: 81087179656c2d864201288cd4f4d1562f0ef2758dda136f1c683721e314e7ca

Contents?: true

Size: 187 Bytes

Versions: 1

Compression:

Stored size: 187 Bytes

Contents

module Ncn
  class Editor
    def self.to_proc
      editor = ENV["EDITOR"] || raise("$EDITOR not defined")
      ->(file_name) { system("#{editor} \"#{file_name}\"") }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ncn-0.1.0 lib/ncn/editor.rb