Class: PangoOT::Loader
- Inherits:
-
GObjectIntrospection::Loader
- Object
- GObjectIntrospection::Loader
- PangoOT::Loader
- Defined in:
- lib/pango/ot-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/ot-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 = "OT_#{constant}" else name = "OT#{constant}" end value = @base_module.const_get(constant) Pango.const_set(name, value) end end end |