PageRenderTime 56ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/rubyunderground/aujroras
YAML | 17 lines | 15 code | 2 blank | 0 comment | 0 complexity | d2ff311561214c7e8852a21652527e48 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>$_.gsub...</tt>, except that <tt>$_</tt> receives the modified result.
  7. - !ruby/struct:SM::Flow::VERB
  8. body: " $_ = &quot;quick brown fox&quot;\n gsub /[aeiou]/, '*' #=&gt; &quot;q**ck br*wn f*x&quot;\n $_ #=&gt; &quot;q**ck br*wn f*x&quot;\n"
  9. full_name: Kernel#gsub
  10. is_singleton: false
  11. name: gsub
  12. params: |
  13. gsub(pattern, replacement) => string
  14. gsub(pattern) {|...| block } => string
  15. visibility: public