lib/pakyow/presenter/presenter.rb in pakyow-presenter-1.0.0.rc2 vs lib/pakyow/presenter/presenter.rb in pakyow-presenter-1.0.0.rc3

- old
+ new

@@ -46,10 +46,11 @@ # attr_reader :presentables # The app object. # + # @api private attr_reader :app def initialize(view, app:, presentables: {}) @app, @view, @presentables = app, view, presentables @logger = Pakyow.logger @@ -74,10 +75,11 @@ end # Returns an array of presenters, one for each view binding. # # @see View#find_all + # @api private def find_all(*names) @view.find_all(*names).map { |view| presenter_for(view) } end @@ -92,10 +94,11 @@ end end # Returns all forms. # + # @api private def forms @view.forms.map { |form| presenter_for(form) } end @@ -110,10 +113,11 @@ end end # Returns all components. # + # @api private def components(renderable: false) @view.components(renderable: renderable).map { |component| presenter_for(component) } end @@ -581,9 +585,10 @@ class << self using Support::Refinements::String::Normalization attr_reader :path + # @api private def make(path, **kwargs, &block) path = String.normalize_path(path) super(path, path: path, **kwargs, &block) end