Sha256: 3250d554c57bc079a2868e0e2a3feb43db624255a996a0272fdce7662d09d068
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
module Nin module Presenter class TodoPresenter < ::SimpleDelegator def call formatting_options = { separating_spaces: 4, longest_id: self.map(&:id).max.length, longest_date: 11 } self.map do |item| Presenter::ItemPresenter.new(item).call(formatting_options) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nin-1.0.0 | lib/nin/presenters/todo_presenter.rb |