lib/docrb/lib/docrb/doc_compiler.rb
def append(obj)
      filename = obj[:filename]
      target = case obj[:type]
               when :module
                 @modules
               when :class
                 @classes
               when :def, :defs
                 @methods
               end

      raise ArgumentError, "cannot append obj of type #{obj[:type]}" if target.nil?

      target.push(filename, obj)
    end
# Appends a given object to the compiler collection. Raises ArgumentError in
# case the object cannot be appended to the current container.
#
# obj - Object to be appended
Appends a given object to the compiler collection. Raises ArgumentError in
case the object cannot be appended to the current container.

Object to be appended
Appends a given object to the compiler collection . Raises ArgumentError in case the object cannot be appended to the current container . Object to be appended
def append(obj)
      filename = obj[:filename]
      target = case obj[:type]
               when :module
                 @modules
               when :class
                 @classes
               when :def, :defs
                 @methods
               end
      raise ArgumentError, "cannot append obj of type #{obj[:type]}" if target.nil?
      target.push(filename, obj)
    end
def append ( obj ) filename = obj [ :filename ] target = case obj [ :type ] when :module @modules when :class @classes when :def , :defs @methods end raise ArgumentError , "cannot append obj of type #{obj[:type]}" if target . nil? target . push ( filename , obj ) end
Appends a given object to the compiler collection.
Appends a given object to the compiler collection .
obj