Sha256: 03162bb511ccc3ad45f77af7c7a40fe920d152a27f400940874ae5a69fc6f146
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
module Pennyworth # Provides supplementary utility methods. class Kit # Builds a string from an array. # ==== Parameters # * +array+ - Required. The array to build a string from. # * +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 OSX clipboard. # ==== Parameters # * +text+ - Required. The text to send to the clipboard. def self.clip text IO.popen("pbcopy", 'w').print text text end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pennyworth-0.2.0 | lib/pennyworth/kit.rb |