lib/docrb/lib/docrb/ruby_parser.rb
# Generates metadata for a given module, such as its name, arguments,
# and boundaries.
#
# node - Class node being processed
#
# Returns a Hash containing metadata about the provided module.
Generates metadata for a given module, such as its name, arguments,
and boundaries.

Class node being processed

Returns a Hash containing metadata about the provided module.
Generates metadata for a given module such as its name arguments and boundaries . Class node being processed Returns a Hash containing metadata about the provided module .
def module_to_meta(node)
      class_path, name = parse_class_path(node.children.first)
      {
        type: :module,
        name: name,
        _visibility: :public,
        class_path: class_path,
        start_at: node.loc.keyword.line,
        end_at: node.loc.end.line
      }
    end
def module_to_meta ( node ) class_path , name = parse_class_path ( node . children . first ) { type : :module , name : name , _visibility : :public , class_path : class_path , start_at : node . loc . keyword . line , end_at : node . loc . end . line } end
Generates metadata for a given module, such as its name, arguments,
and boundaries.
Generates metadata for a given module such as its name arguments and boundaries .
node