Sha256: 99d76f9c5c8a10d11c93ee190b41dc9a398f6b9b523dc6c8dd047678c5d7fe54

Contents?: true

Size: 327 Bytes

Versions: 1

Compression:

Stored size: 327 Bytes

Contents

class Boom::Platform
  class Windows
    def edit json_file
      super { system "start %EDITOR$ #{json_file}" }
    end

    def copy_command
      'clip'
    end

    def open item
      system("#{open_command} #{item.url.gsub("\'","'\\\\''")}")
      item.value
    end

    def open_command
      "start"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kaboom-0.3.3 lib/kaboom/platform/windows.rb