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

https://github.com/ThoughtWorksStudios/mingle_hg_plugin · YAML · 17 lines · 15 code · 2 blank · 0 comment · 0 complexity · d2ff311561214c7e8852a21652527e48 MD5 · raw file

  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