Class: TOPLEVEL_BINDING

Inherits:
Object show all
Defined in:
lib/sr/core_patches.rb

Class Method Summary collapse

Class Method Details

.to_sString

Note:

this method exists entirely for aesthetic purposes (when the default input prompt calls ‘@context.receiver` to get a name for the current binding/context)

Returns a simple inspection string.

Returns:

  • (String)

    a simple inspection string



48
49
50
# File 'lib/sr/core_patches.rb', line 48

def to_s
  'main'
end