Sha256: caa5a3fc75d7bd93c2b956ed376443950bc25105cdfe73669bfe7386db16ba85

Contents?: true

Size: 443 Bytes

Versions: 5

Compression:

Stored size: 443 Bytes

Contents

# dsl.rb

module Ruby2D::DSL
  def get(sym)
    Application.get(sym)
  end

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

  def on(event, &proc)
    Application.on(event, &proc)
  end

  def off(event_descriptor)
    Application.off(event_descriptor)
  end

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

  def clear
    Application.clear
  end

  def show
    Application.show
  end

  def close
    Application.close
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby2d-0.5.1 lib/ruby2d/dsl.rb
ruby2d-0.5.0 lib/ruby2d/dsl.rb
ruby2d-0.4.2 lib/ruby2d/dsl.rb
ruby2d-0.4.1 lib/ruby2d/dsl.rb
ruby2d-0.4.0 lib/ruby2d/dsl.rb