Sha256: 6d4d9a78c63b027147ebda5cd7f5e1169704c3f776557ca212d497fcc79795e9
Contents?: true
Size: 293 Bytes
Versions: 4
Compression:
Stored size: 293 Bytes
Contents
# frozen_string_literal: true module Branch module Name module Clipable module_function def copy_to_clipboard(text) if /darwin/.match?(RUBY_PLATFORM) IO.popen('pbcopy', 'w') { |pipe| pipe.puts text } true end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems