Sha256: 89049f1adac8ded59c5f5e7ac5d5dc8f754e1a8c2973d3690d8d3c28cabfd47a
Contents?: true
Size: 355 Bytes
Versions: 33
Compression:
Stored size: 355 Bytes
Contents
module Expressive class ExtendedValue attr_accessor :setter, :adder def initialize(property_name, scope) @scope = scope @property_name = property_name.to_s @scope[@property_name] = self end def set(value) setter.call value, @scope end def <<(value) adder.call value, @scope end end end
Version data entries
33 entries across 33 versions & 1 rubygems