Class: Chatwerk::Views::PackagesView
- Defined in:
- lib/chatwerk/views/packages_view.rb
Instance Attribute Summary
Attributes inherited from BaseView
Instance Method Summary collapse
Methods inherited from BaseView
Constructor Details
This class inherits a constructor from Chatwerk::Views::BaseView
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Chatwerk::Views::BaseView
Instance Method Details
#template(packages:, package_path: nil) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/chatwerk/views/packages_view.rb', line 6 def template(packages:, package_path: nil) if packages.empty? "No packages found matching #{package_path.inspect}\n" else packages.map { |p| "#{p.name}\n" }.sort.join end end |