Sha256: 8c33624ce261db646c10454dc80a8a2868e239fc5d070ab05a4a232b6376c034
Contents?: true
Size: 597 Bytes
Versions: 1
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true class String # Returns the string replaced similar chars randomly. # # 'マリリン・マンソン'.masososo # # => "マソソソ・マソソソ" or "マンンン・マソソリ" or ... def similar_string(opt = {}) Masososo.similar_string(self, opt) end alias masososo similar_string # Returns similar chars. # # 'ソ'.similar_chars # # => ["リ", "ン"] # # 'ソ'.similar_chars(including_self: true) # # => ["ソ", "リ", "ン"] def similar_chars(opt = {}) Masososo.similar_chars(self, opt) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
masososo-0.0.1 | lib/masososo/core_ext.rb |