Class: Boom::Platform::Darwin

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

Instance Method Summary collapse

Methods inherited from Base

#copy, #edit, #open_file

Instance Method Details

#copy_commandObject



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

def copy_command
  'pbcopy'
end

#open(item) ⇒ Object



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

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

#open_commandObject



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

def open_command
  "open"
end