module Clipboard::Implementation

Public Instance Methods

clear(**kwargs) click to toggle source

Can be used to add a native clear implementation Should return true

# File lib/clipboard/implementation.rb, line 21
def clear(**kwargs)
  copy('', **kwargs)

  true
end
copy(_data, **) click to toggle source

Takes the data to copy as argument Should return true

# File lib/clipboard/implementation.rb, line 15
def copy(_data, **)
  raise NotImplementedError, "copying not supported by this implementation, try another"
end
paste(_clipboard_name = nil, **) click to toggle source

Implement paste Should take an optional argument

# File lib/clipboard/implementation.rb, line 9
def paste(_clipboard_name = nil, **)
  raise NotImplementedError, "pasting not supported by this implementation, try another"
end