Sha256: 92eb3b97399cc720c8a5d173c0858d8d29045812a7884d03bf534cd0bc25a776

Contents?: true

Size: 268 Bytes

Versions: 8

Compression:

Stored size: 268 Bytes

Contents

module Debugging
  def let_vars_hash
    memoized_values = self.receiver.instance_variable_get(:@__memoized)&.instance_variable_get(:@memoized)
    memoized_values && !memoized_values.empty? ? memoized_values.dup : {}
  end
end

class Binding
  include Debugging
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enhanced_errors-0.1.7 lib/binding.rb
enhanced_errors-0.1.6 lib/binding.rb
enhanced_errors-0.1.5 lib/binding.rb
enhanced_errors-0.1.4 lib/binding.rb
enhanced_errors-0.1.3 lib/binding.rb
enhanced_errors-0.1.2 lib/binding.rb
enhanced_errors-0.1.1 lib/binding.rb
enhanced_errors-0.1.0 lib/binding.rb