Module: ToClip

Defined in:
lib/toclip.rb

Instance Method Summary collapse

Instance Method Details

#to_clip(object = nil) ⇒ Object Also known as: toclip



4
5
6
7
8
# File 'lib/toclip.rb', line 4

def to_clip(object = nil)
  object = object || self
  Clipboard.copy object.is_a?(String) ? object : object.inspect
  object
end