Sha256: d534fd173bf263eb18f52813e4a889daf794e0d10de3eaa30790c49d7327830d
Contents?: true
Size: 931 Bytes
Versions: 12
Compression:
Stored size: 931 Bytes
Contents
# frozen_string_literal: true # @api private # @since 0.1.0 class SmartCore::Container::DependencyResolver::Route::Cursor # @return [String] # # @api private # @since 0.1.0 attr_reader :path_part alias_method :current_path, :path_part # @param path_part [String] # @param path_part_index [Integer] # @param route [SmartCore::Container::DependencyResolver::Route] # @return [void] # # @api private # @since 0.1.0 def initialize(path_part, path_part_index, route) @path_part = path_part @path_part_index = path_part_index @route = route end # @return [Boolean] # # @api private # @since 0.1.0 def last? route.size <= (path_part_index + 1) end private # @return [Integer] # # @api private # @since 0.1.0 attr_reader :path_part_index # @return [SmartCore::Container::DependencyResolver::Route] # # @api private # @since 0.1.0 attr_reader :route end
Version data entries
12 entries across 12 versions & 1 rubygems