Class: Niente::App
- Inherits:
-
Drawable
- Object
- Shoes::Linkable
- Drawable
- Niente::App
- Defined in:
- lacci/lib/scarpe/niente/app.rb
Instance Attribute Summary
Attributes inherited from Drawable
#children, #parent, #shoes_linkable_id, #shoes_type
Attributes inherited from Shoes::Linkable
Instance Method Summary collapse
- #destroy ⇒ Object
- #init ⇒ Object
-
#initialize(properties) ⇒ App
constructor
A new instance of App.
- #run ⇒ Object
Methods inherited from Drawable
#add_child, #remove_child, #set_parent
Methods inherited from Shoes::Linkable
#bind_shoes_event, #send_self_event, #send_shoes_event, #unsub_all_shoes_events, #unsub_shoes_event
Constructor Details
#initialize(properties) ⇒ App
Returns a new instance of App.
5 6 7 8 9 10 11 |
# File 'lacci/lib/scarpe/niente/app.rb', line 5 def initialize(properties) super bind_shoes_event(event_name: "init") { init } bind_shoes_event(event_name: "run") { run } bind_shoes_event(event_name: "destroy") { destroy } end |
Instance Method Details
#destroy ⇒ Object
20 21 |
# File 'lacci/lib/scarpe/niente/app.rb', line 20 def destroy end |
#init ⇒ Object
13 14 |
# File 'lacci/lib/scarpe/niente/app.rb', line 13 def init end |
#run ⇒ Object
16 17 18 |
# File 'lacci/lib/scarpe/niente/app.rb', line 16 def run send_shoes_event("wait", event_name: "custom_event_loop") end |