Class: Gtk3assist
- Inherits:
-
Object
- Object
- Gtk3assist
- Defined in:
- lib/gtk3assist.rb
Overview
This class has various sub-classes which can help developing applications using the ‘gir_ffi-gtk’-gtk3-framework.
Defined Under Namespace
Classes: Builder, Combobox, Msgbox, Threadding, Treeview
Class Method Summary collapse
-
._(str) ⇒ Object
Sends the given text to GetText or returns the string if GetText is not loaded.
-
.const_missing(name) ⇒ Object
Autoloader for subclasses.
Class Method Details
._(str) ⇒ Object
Sends the given text to GetText or returns the string if GetText is not loaded.
14 15 16 17 18 19 20 |
# File 'lib/gtk3assist.rb', line 14 def self._(str) if ::Kernel.const_defined?(:GetText) ::GetText._(str) else return str end end |
.const_missing(name) ⇒ Object
Autoloader for subclasses.
7 8 9 10 11 |
# 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 |