Class: Object

Inherits:
BasicObject
Defined in:
lib/citysdk/util.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


17
18
19
20
# File 'lib/citysdk/util.rb', line 17

def blank?
  return false if self.class == Symbol
  self.nil? or (self.class==String and self.strip == '') or (self.respond_to?(:empty?) ? self.empty? : false)
end

#deep_copyObject



14
15
16
# File 'lib/citysdk/util.rb', line 14

def deep_copy
  Marshal.load(Marshal.dump(self))
end