class Ekezetalakito::ClipboardHelper

Public Class Methods

pbcopy(text) click to toggle source
# File lib/ekezetalakito/clipboard_helper.rb, line 4
def self.pbcopy(text)
  IO.popen('pbcopy', 'w') { |f| f << text }
end
pbpaste() click to toggle source
# File lib/ekezetalakito/clipboard_helper.rb, line 8
def self.pbpaste
  %x{pbpaste -Prefer txt}
end