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



13
14
15
# File 'lib/fe_core_ext/core_ext/pathname.rb', line 13

def glob(string)
  Pathname.glob(self.join(string).to_s)
end

#load_yamlObject



8
9
10
11
# File 'lib/fe_core_ext/core_ext/pathname.rb', line 8

def load_yaml
  return unless exist?
  YAML.load_file(self)
end