Sha256: 9aa9cd73fcdc32ad2228b16471a01aad32eaac3e55c4fd9a37b1e4a8d1a0e373

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

class Liza::Controller < Liza::Unit
  part :controller_renderer

  inherited_explicitly_sets_system

  def self.on_connected box_klass, panel
    set :box, box_klass
    set :panel, panel
  end

  def self.box
    get :box
  end

  def self.panel
    get :panel
  end

  def box
    self.class.box
  end

  def panel
    self.class.panel
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lizarb-1.0.4 lib/liza/base/controller.rb
lizarb-1.0.3 lib/liza/base/controller.rb