Sha256: 750927e655958a16e42fd1255285f34ab7d04a99d2af8148a34fc60f3b47cd82
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
require 'pathname' require 'yaml' module FeCoreExt::CoreExt end module FeCoreExt::CoreExt::Pathname def load_yaml return unless exist? YAML.load_file(self) end def glob(string) Pathname.glob(self.join(string).to_s) end end module FeCoreExt::CoreExt::PathnameClassMethods def join(*args) new(File.join(*args)) end end class Pathname extend FeCoreExt::CoreExt::PathnameClassMethods include FeCoreExt::CoreExt::Pathname end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fe_core_ext-0.1.25 | lib/fe_core_ext/core_ext/pathname.rb |