class Gtk3assist

This class has various sub-classes which can help developing applications using the 'gir_ffi-gtk'-gtk3-framework.

Public Class Methods

_(str) click to toggle source

Sends the given text to GetText or returns the string if GetText is not loaded.

# File lib/gtk3assist.rb, line 14
def self._(str)
  if ::Kernel.const_defined?(:GetText)
    ::GetText._(str)
  else
    return str
  end
end
const_missing(name) click to toggle source

Autoloader for subclasses.

# File lib/gtk3assist.rb, line 7
def self.const_missing(name)
  require "#{File.dirname(__FILE__)}/gtk3assist_#{name.to_s.downcase}.rb"
  raise "Still not defined: '#{name}'." if !Gtk3assist.const_defined?(name)
  return Gtk3assist.const_get(name)
end