Sha256: 80c31b815367c5958c711dd1d9f19905ae849ba68dbe9d443bb355b550a57c11
Contents?: true
Size: 730 Bytes
Versions: 36
Compression:
Stored size: 730 Bytes
Contents
class BaseBinding attr_accessor :target, :context, :binding_name def initialize(target, context, binding_name) @target = target @context = context @binding_name = binding_name @@binding_number ||= 10000 end def section @section ||= target.section(@binding_name) end def remove section.remove # Clear any references @target = nil @context = nil @section = nil end def remove_anchors section.remove_anchors end def queue_update if Volt.server? # Run right away update else end end def value_from_getter(getter) # Evaluate the getter proc in the context return @context.instance_eval(&getter) end end
Version data entries
36 entries across 36 versions & 1 rubygems