Sha256: 73528010e286e95baf7103072b852d4a386bb83af56f664b6b4a12a3e80d5e0c
Contents?: true
Size: 422 Bytes
Versions: 2
Compression:
Stored size: 422 Bytes
Contents
module Protobuf module Util module_function def camelize(name) name.to_s.gsub(/(?:\A|_)(\w)/) { $1.upcase } end def modulize(name) name.to_s.sub(/\A[a-z]/) {|c| c.upcase } end def underscore(name) name.to_s.gsub(/\B[A-Z]/, '_\&').downcase end end begin Version = File.read(File.dirname(__FILE__) + '/../../../VERSION') rescue Version = 'unknown' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_protobuf-0.4.6 | lib/protobuf/common/util.rb |
ruby_protobuf-0.4.5 | lib/protobuf/common/util.rb |