Class: ParamsReady::Extensions::Undefined

Inherits:
Object
  • Object
show all
Defined in:
lib/params_ready/extensions/undefined.rb

Class Method Summary collapse

Class Method Details

.blank?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/params_ready/extensions/undefined.rb', line 12

def self.blank?
  true
end

.dupObject



4
5
6
# File 'lib/params_ready/extensions/undefined.rb', line 4

def self.dup
  self
end

.present?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/params_ready/extensions/undefined.rb', line 8

def self.present?
  false
end

.value_indefinite?(value) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/params_ready/extensions/undefined.rb', line 16

def self.value_indefinite?(value)
  value == self || value.nil?
end