class RuGUI::GemBoot

Public Class Methods

load_rubygems() click to toggle source
# File lib/rugui/generators/rugui/templates/config/boot.rb, line 70
def load_rubygems
  require 'rubygems'
rescue LoadError
  $stderr.puts %(RuGUI requires RubyGems. Please install RubyGems and try again: http://rubygems.rubyforge.org)
  exit 1
end
rubygems_version() click to toggle source
# File lib/rugui/generators/rugui/templates/config/boot.rb, line 66
def rubygems_version
  Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
end

Public Instance Methods

load_initializer() click to toggle source
# File lib/rugui/generators/rugui/templates/config/boot.rb, line 52
def load_initializer
  self.class.load_rubygems
  load_rugui
  require 'rugui/initializer'
end
load_rugui() click to toggle source
# File lib/rugui/generators/rugui/templates/config/boot.rb, line 58
def load_rugui
  require 'rugui'
rescue Gem::LoadError
  $stderr.puts %(Missing the RuGUI gem. Please `gem install rugui`.)
  exit 1
end