Sha256: 693a18df3bda3ef60eeab2b7b4779fb959490eaf260b3b1217cf6e9db65401c5
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
class Liza::Panel < Liza::Unit inherited_explicitly_sets_system def self.on_connected box_klass set :box, box_klass end def self.box get :box end def box self.class.box end # def initialize key @key = key @blocks = [] @unstarted = true @short = {} end # def short a, b = nil if b @short[a.to_s] = b.to_s else @short[a.to_s] || a.to_s end end # def push block @unstarted = true @blocks.push block end def started return self unless defined? @unstarted remove_instance_variable :@unstarted @blocks.each { |bl| instance_eval(&bl) } @blocks.clear self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lizarb-1.0.4 | lib/liza/base/panel.rb |