Class: UnderOs::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/under_os/application.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ios_app, options) ⇒ Application

Returns a new instance of Application.



12
13
14
15
# File 'lib/under_os/application.rb', line 12

def initialize(ios_app, options)
  @_      = ios_app
  @window = UnderOs::Window.new
end

Instance Attribute Details

#windowObject (readonly)

Returns the value of attribute window.



2
3
4
# File 'lib/under_os/application.rb', line 2

def window
  @window
end

Class Method Details

.new(*args) ⇒ Object



4
5
6
# File 'lib/under_os/application.rb', line 4

def self.new(*args)
  @inst ||= super(*args)
end

.start(&block) ⇒ Object



8
9
10
# File 'lib/under_os/application.rb', line 8

def self.start(&block)
  @inst.instance_eval &block
end