Sha256: 3ec18b6ddca39ce3946a418f9435da78efff055ad6c07d099a503bcc6f495534
Contents?: true
Size: 542 Bytes
Versions: 5
Compression:
Stored size: 542 Bytes
Contents
module Troo module Presenters class Card include DecoratorHelpers # @param [Troo::Card] # @param [Hash] # @return [Troo::Presenter::Card] def initialize(card, options = {}) @card, @options = card, options end # @return [] def show output.render Template.parse(card, '/../views/card.erb') end private def card Troo::Decorators::Resource.new(@card) end def output @output ||= Troo::Output.new end end end end
Version data entries
5 entries across 5 versions & 1 rubygems