Sha256: d7f24abd191a61bed44fb20fdc5af09c2778fca8f317782a94164e53f7ee2081
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
module Wiris class TypeTools def self.floatToString(float) return float.to_s end def self.isFloating(str) Float(str) rescue false end def self.isInteger(str) Integer(str) rescue false end def self.isIdentifierPart(int) return (int.chr.match(/^[[:alpha:]]$/) ? true : false) || (int.chr.match(/^[[:digit:]]$/) ? true : false) || int.chr == '_' end def self.isIdentifierStart(int) return (int.chr.match(/^[[:alpha:]]$/) ? true : false) || int.chr == '_' end def self.isArray(o) return o.instance_of? Array end def self.isHash(o) return o.instance_of? Hash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wirispluginengine-3.62.0.1322 | lib/src-generic/TypeTools.rb |