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