You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: node.rb
    path of file: ./repos/foreman/app/registries/menu
    
    the code of the file until where you have to start completion: module Menu
  class Node
    include Enumerable
    attr_accessor :parent
    attr_reader :name

    def initialize(name, children = [])
      @
    
    def caption
      case @caption
        when String
          @caption
        when Proc
          @caption.call().to_s
        when Symbol
          @caption.to_s.humanize
        else
          @name.to_s.humanize unless @name == :divider
      end