    # File lib/yard/code_objects/method_object.rb, line 33
        def initialize(namespace, name, scope = :instance, &block)
          @module_function = false
          @scope = nil

          # handle module function
          if scope == :module
            other = self.class.new(namespace, name, &block)
            other.visibility = :private
            scope = :class
            @module_function = true
          end

          @visibility = :public
          self.scope = scope
          self.parameters = []

          super
        end