Sha256: fb27427b6a6f996521882519b745a1ac60f81f050f9cb6b3793f5dc9615b69b0
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
require 'virtus' require 'pathname' module MultiSync module Attributes class Pathname < ::Virtus::Attribute def coerce(value) return ::Pathname.new(value) unless value.nil? value end def value_coerced?(value) value.is_a?(::Pathname) end def coercion_method :to_s end def primitive ::Pathname end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multi_sync-0.0.4 | lib/multi_sync/attributes/pathname.rb |