Module: OmnifocusMcp::Tools::Presenters::PerspectiveView
- Defined in:
- lib/omnifocus_mcp/tools/presenters/perspective_view.rb
Class Method Summary collapse
Class Method Details
.format(perspective_name, items, limit) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/omnifocus_mcp/tools/presenters/perspective_view.rb', line 10 def format(perspective_name, items, limit) output = "## #{perspective_name} Perspective (#{items.length} items)\n\n" if items.empty? output << "No items visible in this perspective." return output end items.each { |item| append_item(output, item) } append_limit_warning(output:, items:, limit:) output end |