class Wiris::TypeTools
Public Class Methods
floatToString(float)
click to toggle source
# File lib/src-generic/TypeTools.rb, line 4 def self.floatToString(float) return float.to_s end
isArray(o)
click to toggle source
# File lib/src-generic/TypeTools.rb, line 24 def self.isArray(o) return o.instance_of? Array end
isFloating(str)
click to toggle source
# File lib/src-generic/TypeTools.rb, line 8 def self.isFloating(str) Float(str) rescue false end
isHash(o)
click to toggle source
# File lib/src-generic/TypeTools.rb, line 28 def self.isHash(o) return o.instance_of? Hash end
isIdentifierPart(int)
click to toggle source
# File lib/src-generic/TypeTools.rb, line 16 def self.isIdentifierPart(int) return (int.chr.match(/^[[:alpha:]]$/) ? true : false) || (int.chr.match(/^[[:digit:]]$/) ? true : false) || int.chr == '_' end
isIdentifierStart(int)
click to toggle source
# File lib/src-generic/TypeTools.rb, line 20 def self.isIdentifierStart(int) return (int.chr.match(/^[[:alpha:]]$/) ? true : false) || int.chr == '_' end
isInteger(str)
click to toggle source
# File lib/src-generic/TypeTools.rb, line 12 def self.isInteger(str) Integer(str) rescue false end