def look_up_const(maudule = Duxml)
      mod_names = name.split(':')
      until mod_names.empty?
        k = mod_names.shift.constantize
        case
          when maudule.const_defined?(k, true)
          when Module.const_defined?(simple_class, true)
            k = simple_class
          else
            return nil
        end
        const = maudule.const_get(k)
        if const.is_a?(Module)
          maudule = const
        end

        return const if mod_names.empty? and [Module, Class].include?(const.class)
      end
      nil
    end
def look_up_const(maudule = Duxml)
      mod_names = name.split(':')
      until mod_names.empty?
        k = mod_names.shift.constantize
        case
          when maudule.const_defined?(k, true)
          when Module.const_defined?(simple_class, true)
            k = simple_class
          else
            return nil
        end
        const = maudule.const_get(k)
        if const.is_a?(Module)
          maudule = const
        end

        return const if mod_names.empty? and [Module, Class].include?(const.class)
      end
      nil
    end
def filter(args)
 @param maudule [Module] module context in which to look for duck-called method's module
 @return [Module, Class] requested module or class