Class: Boom::Platform::Windows

Inherits:
Object
  • Object
show all
Defined in:
lib/kaboom/platform/windows.rb

Instance Method Summary collapse

Instance Method Details

#copy_commandObject



7
8
9
# File 'lib/kaboom/platform/windows.rb', line 7

def copy_command
  'clip'
end

#edit(json_file) ⇒ Object



3
4
5
# File 'lib/kaboom/platform/windows.rb', line 3

def edit json_file
  super { system "start %EDITOR$ #{json_file}" }
end

#open(item) ⇒ Object



11
12
13
14
# File 'lib/kaboom/platform/windows.rb', line 11

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

#open_commandObject



16
17
18
# File 'lib/kaboom/platform/windows.rb', line 16

def open_command
  "start"
end