Class: SmartCore::Container::DependencyResolver::Route::Cursor Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

Since:

  • 0.1.0



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_partString (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.

Returns:

  • (String)

Since:

  • 0.1.0



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.

Returns:

  • (Boolean)

Since:

  • 0.1.0



30
31
32
# File 'lib/smart_core/container/dependency_resolver/route/cursor.rb', line 30

def last?
  route.size <= (path_part_index + 1)
end