PageRenderTime 60ms CodeModel.GetById 36ms RepoModel.GetById 0ms app.codeStats 0ms

/java/jruby-1.1.3/share/ri/1.8/system/Kernel/gsub%21-i.yaml

https://github.com/rubyunderground/aujroras
YAML | 17 lines | 15 code | 2 blank | 0 comment | 0 complexity | fb2e8c8487e114da1a61e156925db250 MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1, JSON, CPL-1.0
  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