Module: Ruby2D::DSL
- Defined in:
- lib/ruby2d/dsl.rb
Overview
dsl.rb
Instance Method Summary collapse
- #clear ⇒ Object
- #close ⇒ Object
- #get(sym) ⇒ Object
- #off(event_descriptor) ⇒ Object
- #on(event, &proc) ⇒ Object
- #set(opts) ⇒ Object
- #show ⇒ Object
- #update(&proc) ⇒ Object
Instance Method Details
#clear ⇒ Object
24 25 26 |
# File 'lib/ruby2d/dsl.rb', line 24 def clear Application.clear end |
#close ⇒ Object
32 33 34 |
# File 'lib/ruby2d/dsl.rb', line 32 def close Application.close end |
#get(sym) ⇒ Object
4 5 6 |
# File 'lib/ruby2d/dsl.rb', line 4 def get(sym) Application.get(sym) end |
#off(event_descriptor) ⇒ Object
16 17 18 |
# File 'lib/ruby2d/dsl.rb', line 16 def off(event_descriptor) Application.off(event_descriptor) end |
#on(event, &proc) ⇒ Object
12 13 14 |
# File 'lib/ruby2d/dsl.rb', line 12 def on(event, &proc) Application.on(event, &proc) end |
#set(opts) ⇒ Object
8 9 10 |
# File 'lib/ruby2d/dsl.rb', line 8 def set(opts) Application.set(opts) end |
#show ⇒ Object
28 29 30 |
# File 'lib/ruby2d/dsl.rb', line 28 def show Application.show end |
#update(&proc) ⇒ Object
20 21 22 |
# File 'lib/ruby2d/dsl.rb', line 20 def update(&proc) Application.update(&proc) end |