Class: WebUndefined
- Inherits:
-
Object
- Object
- WebUndefined
- Defined in:
- lib/ichabod/coercion.rb
Instance Method Summary collapse
- #&(ob) ⇒ Object
- #^(ob) ⇒ Object
- #inspect ⇒ Object
- #nil? ⇒ Boolean
- #to_a ⇒ Object
- #to_f ⇒ Object
- #to_i ⇒ Object
- #to_s ⇒ Object
- #|(ob) ⇒ Object
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 |
#inspect ⇒ Object
34 35 36 |
# File 'lib/ichabod/coercion.rb', line 34 def inspect 'undefined' end |
#nil? ⇒ Boolean
38 39 40 |
# File 'lib/ichabod/coercion.rb', line 38 def nil? true end |
#to_a ⇒ Object
50 51 52 |
# File 'lib/ichabod/coercion.rb', line 50 def to_a [] end |
#to_f ⇒ Object
46 47 48 |
# File 'lib/ichabod/coercion.rb', line 46 def to_f 0.0 end |
#to_i ⇒ Object
42 43 44 |
# File 'lib/ichabod/coercion.rb', line 42 def to_i 0 end |
#to_s ⇒ Object
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 |