Sha256: a8f9908c141a65f130494dc1be01fb22aad0e826b59d22de0c35353c34af67c4

Contents?: true

Size: 220 Bytes

Versions: 5

Compression:

Stored size: 220 Bytes

Contents

require 'facets/binding/eval'

class Binding

  # Returns the nature of something within the context of the binding.
  # Returns nil if that thing is not defined.

  def defined?(x)
    eval("defined? #{x}")
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-2.4.2 lib/core/facets/binding/defined.rb
facets-2.4.3 lib/core/facets/binding/defined.rb
facets-2.4.4 lib/core/facets/binding/defined.rb
facets-2.4.5 lib/core/facets/binding/defined.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/core/facets/binding/defined.rb