Sha256: 97e175f711e396d5605fe6046f73685b6091ee1d627e7a0968e8df22484d5b6c
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
# encoding: utf-8 class Bubs VERSION = '0.0.5' # 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 xp, tho def self.copy(text) copycmd = case RUBY_PLATFORM when /darwin/ 'pbcopy' when /linux/ 'xclip' when /windows/ 'clip' end copycmd && system("printf \"#{text}\" | #{copycmd}") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bubs-0.0.5 | lib/bubs.rb |