def name(options = {})
      options = { apply_generator: true }.merge(options)
      if options[:apply_generator]
        config.name_generator.call(@name, self)
      else
        @name
      end
    end
def name(options = {})
      options = { apply_generator: true }.merge(options)
      if options[:apply_generator]
        config.name_generator.call(@name, self)
      else
        @name
      end
    end
see ItemContainer#item

 The subnavigation (if any) is either provided by a block or
 passed in directly as <tt>items</tt>
 Returns the item's name.
 If :apply_generator option is set to true (default),
 the name will be passed to the name_generator specified
 in the configuration.