Method: Rex::Text.to_js_comment
- Defined in:
- lib/rex/text.rb
.to_js_comment(str, wrap = DefaultWrap) ⇒ Object
Creates a javascript-style comment
257 258 259 |
# File 'lib/rex/text.rb', line 257 def self.to_js_comment(str, wrap = DefaultWrap) return wordwrap(str, 0, wrap, '', '// ') end |