PageRenderTime 50ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/jruby-1.5.5/share/ri/1.8/system/Kernel/gsub%21-i.yaml

https://github.com/ThoughtWorksStudios/mingle_hg_plugin
YAML | 17 lines | 15 code | 2 blank | 0 comment | 0 complexity | fb2e8c8487e114da1a61e156925db250 MD5 | raw file
Possible License(s): Apache-2.0, GPL-3.0, JSON
  1. --- !ruby/object:RI::MethodDescription
  2. aliases: []
  3. block_params:
  4. comment:
  5. - !ruby/struct:SM::Flow::P
  6. body: Equivalent to <tt>Kernel::gsub</tt>, except <tt>nil</tt> is returned if <tt>$_</tt> is not modified.
  7. - !ruby/struct:SM::Flow::VERB
  8. body: " $_ = &quot;quick brown fox&quot;\n gsub! /cat/, '*' #=&gt; nil\n $_ #=&gt; &quot;quick brown fox&quot;\n"
  9. full_name: Kernel#gsub!
  10. is_singleton: false
  11. name: gsub!
  12. params: |
  13. gsub!(pattern, replacement) => string or nil
  14. gsub!(pattern) {|...| block } => string or nil
  15. visibility: public