Method: Cog::EmbedContext#to_statement
- Defined in:
- lib/cog/embed_context.rb
#to_statement(type = 'cog') ⇒ String
125 126 127 128 129 130 |
# File 'lib/cog/embed_context.rb', line 125 def to_statement(type='cog') x = "#{type}: #{hook}" x += "(#{args.join ' '})" if args x += " once" if once? x end |