module Ccp::Receivers::Commentable
Constants
- Comment
Public Instance Methods
comment(text, level = nil)
click to toggle source
# File lib/ccp/receivers/commentable.rb, line 18 def comment(text, level = nil) comments[text] ||= Comment.new(text, level) end
comments()
click to toggle source
# File lib/ccp/receivers/commentable.rb, line 22 def comments @comments ||= ActiveSupport::OrderedHash.new end
show_comments(*args)
click to toggle source
# File lib/ccp/receivers/commentable.rb, line 26 def show_comments(*args) comments.each_value do |comment| logger.info comment.colorized end end