Sha256: ee2f3a9afec5964cddf8e212d32ba00f8564d242d5c50ed3d01e02bc0b2d8f87

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

# frozen_string_literal: true

require 'pathname'
require 'dry/core/extensions'

class Pathname
  extend Dry::Core::Extensions

  register_extension :constants do
    require_relative 'extensions/constants'
  end

  register_extension :explode do
    require_relative 'extensions/explode'
    include Extensions::Explode
  end

  register_extension :ext do
    require_relative 'extensions/ext'
    include Extensions::Ext
  end

  register_extension :partial do
    require_relative 'extensions/partial'
    include Extensions::Partial
  end

  register_extension :pathmap do
    require_relative 'extensions/pathmap'
    include Extensions::Pathmap
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-files-0.2.0 lib/pathname/extensions.rb