Sha256: 92e82b7602aa0ba18a4d5e1caa94af4fabf7fc0b57942d6d14dcfd1ee2c1d4e4

Contents?: true

Size: 461 Bytes

Versions: 5

Compression:

Stored size: 461 Bytes

Contents

#
# Application config proxy
#
class UnderOs::Config

  def initialize(app)
    @app = app
  end

  def root_page
    @app.history.root_page
  end

  def root_page=(page)
    @app.history.root_page = page
  end

  def status_bar
    @status_bar
  end

  def status_bar=(visible)
    @status_bar = visible
  end

  def navbar
    @app.history.navbar.visible
  end

  def navbar=(visible)
    @app.history.navbar.__send__ visible ? :show : :hide, false
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
under-os-1.3.0 lib/under_os/config.rb
under-os-1.2.1 lib/under_os/config.rb
under-os-1.2.0 lib/under_os/config.rb
under-os-1.1.0 lib/under_os/config.rb
under-os-1.0.0 lib/under_os/config.rb