Module: GooCanvas

Defined in:
lib/alexandria/ui/barcode_animation.rb

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



30
31
32
33
34
35
36
37
# File 'lib/alexandria/ui/barcode_animation.rb', line 30

def const_missing(name)
  init
  if const_defined?(name)
    const_get(name)
  else
    super
  end
end

.initObject



39
40
41
42
43
44
45
46
# File 'lib/alexandria/ui/barcode_animation.rb', line 39

def init
  class << self
    remove_method(:init)
    remove_method(:const_missing)
  end
  loader = GObjectIntrospection::Loader.new(self)
  loader.load("GooCanvas")
end