lib/meme.rb
##
# Tries to find clipboard copy executable and if found puts +link+ in your
# clipboard.
Tries to find clipboard copy executable and if found puts +link+ in your
clipboard.
Tries to find clipboard copy executable and if found puts + link + in your clipboard .
def paste link
    clipboard = %w{
      /usr/bin/pbcopy
      /usr/bin/xclip
    }.find { |path| File.exist? path }
    if clipboard
      IO.popen clipboard, 'w' do |io| io.write link end
    end
  end
def paste link clipboard = %w{ /usr/bin/pbcopy /usr/bin/xclip } . find { | path | File . exist? path } if clipboard IO . popen clipboard , 'w' do | io | io . write link end end end
Tries to find clipboard copy executable and if found puts +link+ in your
clipboard.
Tries to find clipboard copy executable and if found puts + link + in your clipboard .
link