Class: UndefClass
- Inherits:
-
Object
- Object
- UndefClass
- Defined in:
- yard-stubs/carray_undef.rb
Overview
Singleton class of the UNDEF sentinel value. Not instantiable
(UndefClass.new is undef'd after the single instance is created
in Init_carray_undef).
The class is private API in practice: read and write the sentinel
through the top-level UNDEF constant rather than touching the
class directly.
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Returns
trueonly whenotheris the same UNDEF singleton (identity comparison). -
#inspect ⇒ String
Returns the literal string
"UNDEF". -
#to_f ⇒ Object
Raises
TypeError. -
#to_i ⇒ Object
Raises
TypeError. -
#to_int ⇒ Object
Alias of #to_i.
-
#to_s ⇒ String
Returns the literal string
"UNDEF".
Instance Method Details
#==(other) ⇒ Boolean
47 |
# File 'yard-stubs/carray_undef.rb', line 47 def ==(other); end |
#inspect ⇒ String
16 |
# File 'yard-stubs/carray_undef.rb', line 16 def inspect; end |
#to_f ⇒ Object
30 |
# File 'yard-stubs/carray_undef.rb', line 30 def to_f; end |
#to_i ⇒ Object
35 |
# File 'yard-stubs/carray_undef.rb', line 35 def to_i; end |
#to_int ⇒ Object
40 |
# File 'yard-stubs/carray_undef.rb', line 40 def to_int; end |
#to_s ⇒ String
23 |
# File 'yard-stubs/carray_undef.rb', line 23 def to_s; end |