Class: Wiris::PropertiesTools
- Inherits:
 - 
      Object
      
        
- Object
 - Wiris::PropertiesTools
 
 
- Defined in:
 - lib/src-generic/PropertiesTools.rb
 
Class Method Summary collapse
- .fromProperties(prop) ⇒ Object
 - .getProperty(prop, key, dflt = nil) ⇒ Object
 - .newProperties ⇒ Object
 - .setProperty(prop, key, value) ⇒ Object
 - .toProperties(hashString) ⇒ Object
 
Class Method Details
.fromProperties(prop) ⇒ Object
      29 30 31  | 
    
      # File 'lib/src-generic/PropertiesTools.rb', line 29 def self.fromProperties(prop) return prop end  | 
  
.getProperty(prop, key, dflt = nil) ⇒ Object
      3 4 5 6 7 8 9  | 
    
      # File 'lib/src-generic/PropertiesTools.rb', line 3 def self.getProperty(prop, key, dflt=nil) if (!prop[key].nil?) return prop[key] else return dflt end end  | 
  
.newProperties ⇒ Object
      15 16 17  | 
    
      # File 'lib/src-generic/PropertiesTools.rb', line 15 def self.newProperties() return Hash.new() end  | 
  
.setProperty(prop, key, value) ⇒ Object
      11 12 13  | 
    
      # File 'lib/src-generic/PropertiesTools.rb', line 11 def self.setProperty(prop, key, value) prop[key] = value end  |