class WirisPlugin::DataUtils
Public Class Methods
makeHashInt(definition)
click to toggle source
# File lib/com/wiris/util/type/DataUtils.rb, line 10 def self.makeHashInt(definition) hashItems = Arrays::fromCSV(definition) result = Hash.new() hashItems separatorIndex = itemPair::indexOf(":") if separatorIndex == -1 next end key = itemPair::substring(0,separatorIndex)::trim() value = Std::parseInt(itemPair::substring(separatorIndex + 1)::trim()) result::set(key,value) return result end
new()
click to toggle source
Calls superclass method
# File lib/com/wiris/util/type/DataUtils.rb, line 7 def initialize() super() end