lib/docrb/lib/docrb/ruby_parser.rb
def singleton_method_to_meta(node)
      class_path, name = parse_class_path(node.children.first)
      {
        type: :defs,
        target: name,
        class_path: class_path,
        name: node.children[1],
        args: parse_method_args(node),
        start_at: node.loc.keyword.line,
        end_at: node.loc.end.line
      }
    end
# Generates metadata for a given singleton method, such as its name,
# arguments, and boundaries.
#
# node - Method node being processed
#
# Returns a Hash containing metadata about the provided singleton method.
Generates metadata for a given singleton method, such as its name,
arguments, and boundaries.

Method node being processed

Returns a Hash containing metadata about the provided singleton method.
Generates metadata for a given singleton method such as its name arguments and boundaries . Method node being processed Returns a Hash containing metadata about the provided singleton method .
def singleton_method_to_meta(node)
      class_path, name = parse_class_path(node.children.first)
      {
        type: :defs,
        target: name,
        class_path: class_path,
        name: node.children[1],
        args: parse_method_args(node),
        start_at: node.loc.keyword.line,
        end_at: node.loc.end.line
      }
    end
def singleton_method_to_meta ( node ) class_path , name = parse_class_path ( node . children . first ) { type : :defs , target : name , class_path : class_path , name : node . children [ 1 ] , args : parse_method_args ( node ) , start_at : node . loc . keyword . line , end_at : node . loc . end . line } end
Generates metadata for a given singleton method, such as its name,
arguments, and boundaries.
Generates metadata for a given singleton method such as its name arguments and boundaries .
node