lib/docrb/lib/docrb/ruby_parser.rb
def singleton_class_to_meta(node)
      target = node.children.first.type
      target = node.children[0].children.last if target == :const
      {
        type: :sclass,
        target: target,
        _visibility: :public,
        start_at: node.loc.keyword.line,
        end_at: node.loc.end.line
      }
    end
# Generates metadata for a given singleton class, such as its name,
# arguments, and boundaries.
#
# node - Singleton class node being processed
#
# Returns a Hash containing metadata about the provided singleton class.
Generates metadata for a given singleton class, such as its name,
arguments, and boundaries.

Singleton class node being processed

Returns a Hash containing metadata about the provided singleton class.
Generates metadata for a given singleton class such as its name arguments and boundaries . Singleton class node being processed Returns a Hash containing metadata about the provided singleton class .
def singleton_class_to_meta(node)
      target = node.children.first.type
      target = node.children[0].children.last if target == :const
      {
        type: :sclass,
        target: target,
        _visibility: :public,
        start_at: node.loc.keyword.line,
        end_at: node.loc.end.line
      }
    end
def singleton_class_to_meta ( node ) target = node . children . first . type target = node . children [ 0 ] . children . last if target == :const { type : :sclass , target : target , _visibility : :public , start_at : node . loc . keyword . line , end_at : node . loc . end . line } end
Generates metadata for a given singleton class, such as its name,
arguments, and boundaries.
Generates metadata for a given singleton class such as its name arguments and boundaries .
node