Module: Ccp::Commands::Commentable

Included in:
Core
Defined in:
lib/ccp/commands/commentable.rb

Instance Method Summary collapse

Instance Method Details

#MEMO(*messages) ⇒ Object



4
5
6
7
# File 'lib/ccp/commands/commentable.rb', line 4

def MEMO(*messages)
  from = caller.is_a?(Array) ? caller.first : self.class
  receiver.comment("MEMO: #{_build_comment(*messages)}\n  #{from}")
end

#TODO(*messages) ⇒ Object



9
10
11
12
# File 'lib/ccp/commands/commentable.rb', line 9

def TODO(*messages)
  from = caller.is_a?(Array) ? caller.first : self.class
  receiver.comment("TODO: #{_build_comment(*messages)}\n  #{from}", :warn)
end