Sha256: 88ff34d21b893fefd5b871d58e79d012adbe6e7f726624939cde70b2572fc6e8
Contents?: true
Size: 240 Bytes
Versions: 2
Compression:
Stored size: 240 Bytes
Contents
class Musterb::BindingExtractor attr_reader :value, :parent def initialize(_binding, parent) @binding = _binding @parent = parent end def [](symbol) @binding.eval symbol rescue NameError parent[symbol] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
musterb-1.0.1 | lib/musterb/binding_extractor.rb |
musterb-0.2.0 | lib/musterb/binding_extractor.rb |