Module: FeCoreExt::CoreExt::Pathname
- Included in:
- Pathname
- Defined in:
- lib/fe_core_ext/core_ext/pathname.rb
Instance Method Summary collapse
Instance Method Details
#glob(string) ⇒ Object
14 15 16 |
# File 'lib/fe_core_ext/core_ext/pathname.rb', line 14 def glob(string) Pathname.glob(self.join(string).to_s) end |
#load_yaml ⇒ Object
9 10 11 12 |
# File 'lib/fe_core_ext/core_ext/pathname.rb', line 9 def load_yaml return unless exist? YAML.load_file(self) end |
#touch(options = {}) ⇒ Object
18 19 20 |
# File 'lib/fe_core_ext/core_ext/pathname.rb', line 18 def touch(={}) FileUtils.touch(@path, ) end |