Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/pms/ext.rb
Class Method Summary collapse
Class Method Details
.search(file, *args, &block) ⇒ Object
45 46 47 48 |
# File 'lib/pms/ext.rb', line 45 def search(file, *args, &block) file = file.path if file.respond_to?(:path) open(file) { |f| f.search(*args, &block) } end |