Module: Opine

Defined in:
lib/opine.rb,
lib/opine/widgets/application.rb

Defined Under Namespace

Modules: Dark, Native Classes: Alert, Application, Rect, Table, View, Widget, Window

Class Method Summary collapse

Class Method Details

.app(options = {}, &block) ⇒ Object



18
19
20
# File 'lib/opine/widgets/application.rb', line 18

def self.app(options={},&block)
  Opine::Native::Application.new(Opine::Application::DEFAULTS.merge(options),&block)
end

.platformObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/opine.rb', line 6

def self.platform
  @platform ||= case RUBY_PLATFORM
  when /darwin/
    :osx
  when /linux/
    :gtk
  when /win/
    :win
  end
end