Class: UnderOs::Application
- Inherits:
-
Object
- Object
- UnderOs::Application
- Defined in:
- lib/under_os/application.rb
Instance Attribute Summary collapse
-
#window ⇒ Object
readonly
Returns the value of attribute window.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ios_app, options) ⇒ Application
constructor
A new instance of Application.
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, ) @_ = ios_app @window = UnderOs::Window.new end |
Instance Attribute Details
#window ⇒ Object (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 |