Class: Ratomic::Undefined

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

Overview

Internal sentinel object for future Hash-like APIs that need to distinguish missing keys from explicit nil values.

Instance Method Summary collapse

Instance Method Details

#inspectString

Return the sentinel’s stable inspection string.

Returns:

  • (String)

    a human-readable sentinel marker



10
11
12
# File 'lib/ratomic/undefined.rb', line 10

def inspect
  "#<Undefined>"
end