module Dry::Types

Public Class Methods

Pathname(path) click to toggle source
# File lib/dry/types/pathname.rb, line 13
def self.Pathname(path)
  path.is_a?(Pathname) ? path : Kernel::Pathname(path.to_s)
end
register_if_needed(key, value) click to toggle source
# File lib/dry/types/pathname.rb, line 9
def self.register_if_needed(key, value)
  register(key, value) unless registered?(key)
end