Sha256: a4aa8c311e0fcbd2d92e331248989f2e32d571eef65cb64138487dc2834ebc67

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

Stored size: 640 Bytes

Contents

# From Matt Payne's slimtimeronshoes

require 'nav'
require 'title_widget'
require 'page_widget'
require 'command_widget'

class Action
  include Nav

  attr_accessor :app

  def initialize
    @command_widget = CommandWidget.new
    @title_widget = TitleWidget.new
    @page_widget = PageWidget.new
  end

  def execute(obj=nil)

  end

  def page_layout(&blk)
    @page_widget.app = app
    @page_widget.show

    app.flow(:width => '100%') do
      @title_widget.app = app
      @title_widget.show
      @command_widget.app = app
      @command_widget.show(:width => COMMAND_AREA_WIDTH)
      blk.call unless blk.nil?
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
royw-shoeshine-0.0.1 examples/action.rb
royw-shoeshine-0.0.2 examples/action.rb
royw-shoeshine-0.0.3 examples/action.rb