class SmartCore::Container::DependencyResolver::Route::Cursor

@api private @since 0.8.0

Attributes

current_path[R]

@return [String]

@api private @since 0.8.0

path_part[R]

@return [String]

@api private @since 0.8.0

path_part_index[R]

@return [Integer]

@api private @since 0.8.0

route[R]

@return [SmartCore::Container::DependencyResolver::Route]

@api private @since 0.8.0

Public Class Methods

new(path_part, path_part_index, route) click to toggle source

@param path_part [String] @param path_part_index [Integer] @param route [SmartCore::Container::DependencyResolver::Route] @return [void]

@api private @since 0.8.0

# File lib/smart_core/container/dependency_resolver/route/cursor.rb, line 20
def initialize(path_part, path_part_index, route)
  @path_part = path_part
  @path_part_index = path_part_index
  @route = route
end

Public Instance Methods

last?() click to toggle source

@return [Boolean]

@api private @since 0.8.0

# File lib/smart_core/container/dependency_resolver/route/cursor.rb, line 30
def last?
  route.size <= (path_part_index + 1)
end