class BasicObject
Public Instance Methods
__binding__()
click to toggle source
Used by `sr` to allow the same general access to `BasicObject` instances that `Object#__binding__` permits for all other objects.
@return [Binding] an unclean ‘Binding` instance representing the current
binding of this object
# File lib/sr/core_patches.rb, line 9 def __binding__ (class << self ; self end).class_eval <<-END def __fallback_binding__ ::Kernel.binding end END self.__fallback_binding__ end
inspect()
click to toggle source
@return [String] a simple inspection string
# File lib/sr/core_patches.rb, line 19 def inspect '#<BasicObject>' end
Also aliased as: to_s