Class: PangoFc::Loader

Inherits:
GObjectIntrospection::Loader
  • Object
show all
Defined in:
lib/pango/fc-loader.rb

Instance Method Summary collapse

Instance Method Details

#post_load(repository, namespace) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/pango/fc-loader.rb', line 19

def post_load(repository, namespace)
  @base_module.constants.each do |constant|
    case constant
    when :INVOKERS,
         :Loader
      next
    else
      if constant.to_s.upcase == constant.to_s
        name = "FC_#{constant}"
      else
        name = "Fc#{constant}"
      end
      value = @base_module.const_get(constant)
      Pango.const_set(name, value)
    end
  end
end