Sha256: cf21dca5ec44387af4da20afde2708973314b358ddf6783823eba0569e86dcf8

Contents?: true

Size: 169 Bytes

Versions: 8

Compression:

Stored size: 169 Bytes

Contents

class Musterb::BindingExtractor
  def initialize(_binding)
    @binding = _binding
  end

  def [](symbol)
    @binding.eval symbol
  rescue NameError
    nil
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
musterb-0.1.2 lib/musterb/binding_extractor.rb
musterb-0.1.1 lib/musterb/binding_extractor.rb
musterb-0.1.0 lib/musterb/binding_extractor.rb
musterb-0.0.7 lib/musterb/binding_extractor.rb
musterb-0.0.6 lib/musterb/binding_extractor.rb
musterb-0.0.5 lib/musterb/binding_extractor.rb
musterb-0.0.4 lib/musterb/binding_extractor.rb
musterb-0.0.3 lib/musterb/binding_extractor.rb