Sha256: dba12de2dce30ceef3def7d6e64b5ea2c63f82ef6266c81709b7877ebce2e3f0

Contents?: true

Size: 266 Bytes

Versions: 8

Compression:

Stored size: 266 Bytes

Contents

require 'singleton'

class Viewport < Container
	include Singleton
	attr_reader :desktop

	def self.desktop
		self.instance.desktop
	end

	def initialize
		super
		add_desktop
	end

	def add_desktop
		@desktop = Workspace.instance
		add desktop, {flex: 1}
	end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_qx-0.0.12 lib/generators/rails_qx/templates/app/assets/javascripts/views/viewport.rb
rails_qx-0.0.11 lib/generators/rails_qx/templates/app/assets/javascripts/views/viewport.rb
rails_qx-0.0.10 lib/generators/rails_qx/templates/app/assets/javascripts/views/viewport.rb
rails_qx-0.0.9 lib/generators/rails_qx/templates/app/assets/javascripts/views/viewport.rb
rails_qx-0.0.8 lib/generators/rails_qx/templates/app/assets/javascripts/views/viewport.rb
rails_qx-0.0.6 lib/generators/rails_qx/templates/app/assets/javascripts/views/viewport.rb
rails_qx-0.0.5 lib/generators/rails_qx/templates/app/assets/javascripts/views/viewport.rb
rails_qx-0.0.4 lib/generators/rails_qx/templates/app/assets/javascripts/views/viewport.rb