Sha256: 5af599f3940eaa976dd3d256ae2591b4f1303ad311c080c5ae35f6888e848177
Contents?: true
Size: 469 Bytes
Versions: 3
Compression:
Stored size: 469 Bytes
Contents
require "kilza/version" require 'kilza/source' require 'kilza/class' require 'kilza/property' require 'kilza/language' require 'kilza/language/objc' require 'kilza/language/java' class String def is_number? true if Float(self) rescue false end end module Kilza def self.clean(str) if str[0].is_number? str = '_' + str end str = str.gsub(/[^a-zA-Z0-9]/, '_') end def self.normalize(str) str = Kilza::clean(str).downcase end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kilza-1.0.2 | lib/kilza.rb |
kilza-1.0.1 | lib/kilza.rb |
kilza-1.0.0 | lib/kilza.rb |