Sha256: 48da54852471564e49f3051359e49bdee32a5142ef34a3c8e223431ea834fd00

Contents?: true

Size: 291 Bytes

Versions: 5

Compression:

Stored size: 291 Bytes

Contents

module Scide

  module Commands

    class Edit < Scide::Commands::Run

      def initialize contents, properties = {}, options = nil
        super contents, properties, options
        @text = [ '$EDITOR', options.to_s, @text.to_s ].select(&:present?).join(' ')
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scide-0.0.5 lib/scide/commands/edit.rb
scide-0.0.4 lib/scide/commands/edit.rb
scide-0.0.3 lib/scide/commands/edit.rb
scide-0.0.2 lib/scide/commands/edit.rb
scide-0.0.1 lib/scide/commands/edit.rb