Class: Troo::Presenters::Comment
- Inherits:
-
Object
- Object
- Troo::Presenters::Comment
- Includes:
- DecoratorHelpers
- Defined in:
- lib/troo/presenters/comment.rb
Instance Method Summary collapse
Methods included from DecoratorHelpers
Constructor Details
#initialize(card, options = {}) ⇒ Troo::Presenters::Comment
9 10 11 |
# File 'lib/troo/presenters/comment.rb', line 9 def initialize(card, = {}) @card, @options = card, end |
Instance Method Details
#show ⇒ Object
Returns [].
14 15 16 17 18 19 20 21 22 |
# File 'lib/troo/presenters/comment.rb', line 14 def show title if comments? all_comments else no_comments end end |