class PangoOT::Loader

Public Instance Methods

post_load(repository, namespace) click to toggle source
# 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