Sha256: b8b4905493a1717a9b9d6a14ae7cbf9fe4deba223d819c6bf7bb6a50e2582b29
Contents?: true
Size: 357 Bytes
Versions: 20
Compression:
Stored size: 357 Bytes
Contents
module Flipper module UI module Util # Private: 0x3000: fullwidth whitespace NON_WHITESPACE_REGEXP = %r![^\s#{[0x3000].pack("U")}]! def self.blank?(str) str.to_s !~ NON_WHITESPACE_REGEXP end def self.titleize(str) str.to_s.split("_").map { |word| word.capitalize }.join(" ") end end end end
Version data entries
20 entries across 20 versions & 1 rubygems