Class: WebUndefined

Inherits:
Object
  • Object
show all
Defined in:
lib/ichabod/coercion.rb

Instance Method Summary collapse

Instance Method Details

#&(ob) ⇒ Object



26
27
28
# File 'lib/ichabod/coercion.rb', line 26

def &(ob)
  false
end

#^(ob) ⇒ Object



30
31
32
# File 'lib/ichabod/coercion.rb', line 30

def ^(ob)
  !ob
end

#inspectObject



34
35
36
# File 'lib/ichabod/coercion.rb', line 34

def inspect
  'undefined'
end

#nil?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/ichabod/coercion.rb', line 38

def nil?
  true
end

#to_aObject



50
51
52
# File 'lib/ichabod/coercion.rb', line 50

def to_a
  []
end

#to_fObject



46
47
48
# File 'lib/ichabod/coercion.rb', line 46

def to_f
  0.0
end

#to_iObject



42
43
44
# File 'lib/ichabod/coercion.rb', line 42

def to_i
  0
end

#to_sObject



54
55
56
# File 'lib/ichabod/coercion.rb', line 54

def to_s
  ''
end

#|(ob) ⇒ Object



58
59
60
# File 'lib/ichabod/coercion.rb', line 58

def |(ob)
  false
end