Sha256: eeab87cef52ca044cf48377857ba1d14fec05f4f3fc881f20b183f57aba3a626
Contents?: true
Size: 931 Bytes
Versions: 2
Compression:
Stored size: 931 Bytes
Contents
# frozen_string_literal: true # @api private # @since 0.8.0 class SmartCore::Container::DependencyResolver::Route::Cursor # @return [String] # # @api private # @since 0.8.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.8.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.8.0 def last? route.size <= (path_part_index + 1) end private # @return [Integer] # # @api private # @since 0.8.0 attr_reader :path_part_index # @return [SmartCore::Container::DependencyResolver::Route] # # @api private # @since 0.8.0 attr_reader :route end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smart_core-0.8.1 | lib/smart_core/container/dependency_resolver/route/cursor.rb |
smart_core-0.8.0 | lib/smart_core/container/dependency_resolver/route/cursor.rb |