Sha256: 39a1a5f05b243972726221501c5663fa624ce36ab7545b0502af8bc084c56306
Contents?: true
Size: 506 Bytes
Versions: 9
Compression:
Stored size: 506 Bytes
Contents
module Bowline module Binders class Singleton < Base cattr_accessor :item class << self def item=(arg) @@item = arg self.item_sync! end def item_sync! return unless @@item && @@elements # Call the chain.js function 'item' on elements @@elements.each {|i| i.updateSingleton(@@item.to_js) } end def find(*a) @@item end end end end end
Version data entries
9 entries across 9 versions & 2 rubygems