Sha256: 9c41fee0a74abf318e21911e9a7ae36afcf493be86188250b7990fdcc04d8018

Contents?: true

Size: 1.25 KB

Versions: 20

Compression:

Stored size: 1.25 KB

Contents

# Copyright 2004-2006 by Kevin Smith
# released under the MIT-style wxruby2 license

# This wrapper serves three functions:
# 1. It loads the binary library 'wxruby2.so' or 'wxruby.dll', while
#    still allowing applications to just require 'wx'.
# 2. It sets up the version information
# 3. It loads in ruby extensions to the core Wx classes.


# load the binary library
require 'wxruby2'

# alias the module
Wx = Wxruby2

# Load the version information (should be bundled with all released versions)
begin
  require 'wx/version'
rescue LoadError
  Wx::WXRUBY_VERSION = '0.0.0'
end
# Convenience string for WxWidgets version info
Wx::WXWIDGETS_VERSION = '%i.%i.%i' % [ Wx::WXWIDGETS_MAJOR_VERSION,
                                       Wx::WXWIDGETS_MINOR_VERSION,
                                       Wx::WXWIDGETS_RELEASE_NUMBER ]


# Load in all the class extension methods written in ruby
# evthandler must be required first b/c it sets up methods modified elsewhere
require 'wx/classes/evthandler.rb'
class_files = File.join( File.dirname(__FILE__), 'wx', 'classes', '*.rb')
Dir.glob(class_files) do | class_file | 
  require 'wx/classes/' + class_file[/\w+\.rb$/]
end

# Load in syntax sweetner
require 'wx/accessors'
require 'wx/keyword_ctors'
require 'wx/keyword_defs'


Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
wxruby-1.9.3-i386-mswin32 lib/wx.rb
wxruby-1.9.2-powerpc-darwin8.10.0 lib/wx.rb
wxruby-1.9.2-i686-linux lib/wx.rb
wxruby-1.9.2-i686-darwin8.8.2 lib/wx.rb
wxruby-1.9.1-powerpc-darwin8.3.0 lib/wx.rb
wxruby-1.9.1-i686-linux lib/wx.rb
wxruby-1.9.1-i686-darwin8.4.1 lib/wx.rb
wxruby-1.9.1-x86_64-linux lib/wx.rb
wxruby-1.9.3-universal-darwin lib/wx.rb
wxruby-1.9.2-x86_64-linux lib/wx.rb
wxruby-1.9.3-x86-linux lib/wx.rb
wxruby-1.9.4-x86-linux lib/wx.rb
wxruby-1.9.4-x86_64-linux lib/wx.rb
wxruby-1.9.5-universal-darwin-9 lib/wx.rb
wxruby-1.9.5-x86-linux lib/wx.rb
wxruby-1.9.6-universal-darwin-9 lib/wx.rb
wxruby-1.9.5-x86_64-linux lib/wx.rb
wxruby-1.9.6-x86-linux lib/wx.rb
wxruby-1.9.7-universal-darwin-9 lib/wx.rb
wxruby-1.9.7-x86-linux lib/wx.rb