Sha256: 7ece97e023ed055f641425de5905288c6b311b52e6be9ba9152006211e755303
Contents?: true
Size: 261 Bytes
Versions: 1
Compression:
Stored size: 261 Bytes
Contents
class Musterb::BindingExtractor < Musterb::Extractor 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
musterb-1.0.0 | lib/musterb/binding_extractor.rb |