PageRenderTime 41ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/gems/gems/facets-2.4.3/doc/ri/FileList/gsub-i.yaml

https://github.com/kad3nce/collective
YAML | 16 lines | 15 code | 1 blank | 0 comment | 0 complexity | 75a8bd14f7af385d52cd8e71d2b2e836 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, BSD-3-Clause, Apache-2.0
  1. --- !ruby/object:RI::MethodDescription
  2. aliases: []
  3. block_params:
  4. comment:
  5. - !ruby/struct:SM::Flow::P
  6. body: Return a new FileList with the results of running <tt>gsub</tt> against each element of the original list.
  7. - !ruby/struct:SM::Flow::P
  8. body: "Example:"
  9. - !ruby/struct:SM::Flow::VERB
  10. body: " FileList['lib/test/file', 'x/y'].gsub(/\\//, &quot;\\&quot;)\n =&gt; ['lib\\test\\file', 'x\\y']\n"
  11. full_name: FileList#gsub
  12. is_singleton: false
  13. name: gsub
  14. params: (pat, rep)
  15. visibility: public