FileSet

Module: FileSet

Extended by:
FileSet
Included in:
FileSet

Overview

FileSet helper method for iterating and interacting with files inside a directory

Instance Method Summary

Instance Method Details

#glob(glob_pattern, file_path = nil) ⇒ Object

Iterates over every file in the glob pattern and yields to a block Returns the list of files matching the glob pattern FileSet.glob('padrino-core/application/*.rb', __FILE__) { |file| load file }

#glob_require(glob_pattern, file_path = nil) ⇒ Object

Requires each file matched in the glob pattern into the application FileSet.glob_require('padrino-core/application/*.rb', __FILE__)

© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/FileSet

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部