Class: SmartCore::Container::DependencyResolver::Route::Cursor Private
- Inherits:
-
Object
- Object
- SmartCore::Container::DependencyResolver::Route::Cursor
- Defined in:
- lib/smart_core/container/dependency_resolver/route/cursor.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #path_part ⇒ String (also: #current_path) readonly private
Instance Method Summary collapse
- #initialize(path_part, path_part_index, route) ⇒ void constructor private
- #last? ⇒ Boolean private
Constructor Details
#initialize(path_part, path_part_index, route) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 23 24 |
# 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 |
Instance Attribute Details
#path_part ⇒ String (readonly) Also known as: current_path
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/smart_core/container/dependency_resolver/route/cursor.rb', line 10 def path_part @path_part end |
Instance Method Details
#last? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
30 31 32 |
# File 'lib/smart_core/container/dependency_resolver/route/cursor.rb', line 30 def last? route.size <= (path_part_index + 1) end |