Sha256: b57a99d39ae35e2b2e34f0169d8d1f92b24ae333c37e580ee37d765154992b91
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
module Troo module Presenters class Member include DecoratorHelpers class << self def show(card, options = {}) new(card, options).show end end def initialize(card, options = {}) @card = card @options = options end def show Sentence.construct(members, 'members') end private attr_reader :card, :options def members @members ||= card.members.map do |member| member.decorator.username end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.8 | lib/troo/presenters/member.rb |