Class: Datacaster::Absent

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/datacaster/absent.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



23
24
25
# File 'lib/datacaster/absent.rb', line 23

def ==(other)
  other.is_a?(self.class)
end

#blank?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/datacaster/absent.rb', line 7

def blank?
  true
end

#inspectObject



11
12
13
# File 'lib/datacaster/absent.rb', line 11

def inspect
  "#<Datacaster.absent>"
end

#present?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/datacaster/absent.rb', line 19

def present?
  false
end

#to_sObject



15
16
17
# File 'lib/datacaster/absent.rb', line 15

def to_s
  ""
end