Class: Strings

Inherits:
Object
  • Object
show all
Defined in:
lib/ipgeolocation_io/Strings.rb

Class Method Summary collapse

Class Method Details

.isNullOrEmpty(str) ⇒ Object



8
9
10
# File 'lib/ipgeolocation_io/Strings.rb', line 8

def self.isNullOrEmpty(str)
  return str == nil || str == ''
end

.nullToEmpty(s) ⇒ Object



2
3
4
5
6
7
# File 'lib/ipgeolocation_io/Strings.rb', line 2

def self.nullToEmpty(s)
  if(s == nil)
    s = "";
  end
  return s;
end