Sha256: 0973cef0f7fd03fdea23be93c2e5b86fc0a2557b9731d5cfeb3716d76e02e25b

Contents?: true

Size: 236 Bytes

Versions: 6

Compression:

Stored size: 236 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
end

class Pathname
  include FeCoreExt::CoreExt::Pathname
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fe_core_ext-0.1.19 lib/fe_core_ext/core_ext/pathname.rb
fe_core_ext-0.1.18 lib/fe_core_ext/core_ext/pathname.rb
fe_core_ext-0.1.17 lib/fe_core_ext/core_ext/pathname.rb
fe_core_ext-0.1.16 lib/fe_core_ext/core_ext/pathname.rb
fe_core_ext-0.1.15 lib/fe_core_ext/core_ext/pathname.rb
fe_core_ext-0.1.14 lib/fe_core_ext/core_ext/pathname.rb