Sha256: 80d0908db17af71e136f301c336965758f27d2f65bba75dc6690be054817729c
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
# encoding: utf-8 class Bubs VERSION = '0.0.4' # Convert words to ⓌⓄⓇⒹⓈ. # # Returns a String, but a much cooler string than what you had initially. def self.convert(text) text.tr('A-Za-z1-90', 'Ⓐ-Ⓩⓐ-ⓩ①-⑨⓪') end # Copies the text to clipboard # # ... not in windows, tho def self.copy(text) copycmd = case RUBY_PLATFORM when /darwin/ 'pbcopy' when /linux/ 'xclip' end copycmd && system("printf \"#{text}\" | #{copycmd}") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bubs-0.0.4 | lib/bubs.rb |