lib/hanami/view/rendering/partial_templates_finder.rb in hanami-view-1.0.0.beta1 vs lib/hanami/view/rendering/partial_templates_finder.rb in hanami-view-1.0.0.beta2
- old
+ new
@@ -19,26 +19,30 @@
# @api private
# @since 0.7.0
PARTIAL_PARTS_SEPARATOR = '.'.freeze
+ # @api private
+ # @since 0.7.0
attr_reader :configuration
# Initializes a new PartialTemplatesFinder
#
# @param configuration [Configuration] the configuration object
#
# @since 0.7.0
+ # @api private
def initialize(configuration)
@configuration = configuration
end
# Find partials under the given path
#
# @return [Array] array of PartialFinder objects
#
# @since 0.7.0
+ # @api private
def find
_find_partials(configuration.root).map do |template|
partial_path, partial_base_name = Pathname(template).relative_path_from(configuration.root).split
partial_base_parts = partial_base_name.to_s.split(PARTIAL_PARTS_SEPARATOR)
@@ -65,6 +69,5 @@
end
end
end
end
end
-