lib/pennyworth/kit.rb in pennyworth-0.1.0 vs lib/pennyworth/kit.rb in pennyworth-0.2.0
- old
+ new
@@ -7,10 +7,10 @@
# * +delimiter+ - Optional. The delimiter used to join each array element. Default: ' '
def self.array_to_string array, delimiter = ' '
array * delimiter
end
- # Sends text to the Mac OS clipboard.
+ # Sends text to the OSX clipboard.
# ==== Parameters
# * +text+ - Required. The text to send to the clipboard.
def self.clip text
IO.popen("pbcopy", 'w').print text
text
\ No newline at end of file