Method: Rex::Text.to_c_comment
- Defined in:
- lib/rex/text/lang.rb
.to_c_comment(str, wrap = DefaultWrap) ⇒ Object
Creates a c-style comment
44 45 46 |
# File 'lib/rex/text/lang.rb', line 44 def self.to_c_comment(str, wrap = DefaultWrap) return "/*\n" + wordwrap(str, 0, wrap, '', ' * ') + " */\n" end |