Class: Object

Inherits:
BasicObject
Defined in:
lib/neuron-client.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


36
37
38
39
40
# File 'lib/neuron-client.rb', line 36

def blank?
  return true if self.nil?
  return true if self.respond_to?(:empty?) && self.empty?
  false
end

#present?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/neuron-client.rb', line 42

def present?
  !self.blank?
end