Class: Boom::Platform::Darwin
- Defined in:
- lib/kaboom/platform/darwin.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#copy_command ⇒ Object
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_command ⇒ Object
12 13 14 |
# File 'lib/kaboom/platform/darwin.rb', line 12 def open_command "open" end |