Module: Ruby2D::DSL

Defined in:
lib/ruby2d/dsl.rb

Overview

dsl.rb

Instance Method Summary collapse

Instance Method Details

#clearObject



28
29
30
# File 'lib/ruby2d/dsl.rb', line 28

def clear
  Application.clear
end

#closeObject



36
37
38
# File 'lib/ruby2d/dsl.rb', line 36

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

#on(args = {}, &proc) ⇒ Object



12
13
14
# File 'lib/ruby2d/dsl.rb', line 12

def on(args = {}, &proc)
  Application.on(args, &proc)
end

#on_controller(&proc) ⇒ Object



20
21
22
# File 'lib/ruby2d/dsl.rb', line 20

def on_controller(&proc)
  Application.on_controller(&proc)
end

#on_key(&proc) ⇒ Object



16
17
18
# File 'lib/ruby2d/dsl.rb', line 16

def on_key(&proc)
  Application.on_key(&proc)
end

#set(opts) ⇒ Object



8
9
10
# File 'lib/ruby2d/dsl.rb', line 8

def set(opts)
  Application.set(opts)
end

#showObject



32
33
34
# File 'lib/ruby2d/dsl.rb', line 32

def show
  Application.show
end

#update(&proc) ⇒ Object



24
25
26
# File 'lib/ruby2d/dsl.rb', line 24

def update(&proc)
  Application.update(&proc)
end