class OoxmlParser::StringHelper
Class for working with strings
Public Class Methods
Source
# File lib/ooxml_parser/helpers/string_helper.rb, line 17 def complex?(string) true if Complex(string.tr(',', '.')) rescue ArgumentError false end
Check if string is complex number @return [True, False] result of comparison
Source
# File lib/ooxml_parser/helpers/string_helper.rb, line 9 def numeric?(string) true if Float(string) rescue ArgumentError false end
This method check if string contains numeric @return [True, False] result of comparison