class MultiSync::Attributes::Pathname

Public Instance Methods

coerce(value) click to toggle source
# File lib/multi_sync/attributes/pathname.rb, line 7
def coerce(value)
  return ::Pathname.new(value) unless value.nil?
  value
end
coercion_method() click to toggle source
# File lib/multi_sync/attributes/pathname.rb, line 16
def coercion_method
  :to_s
end
primitive() click to toggle source
# File lib/multi_sync/attributes/pathname.rb, line 20
def primitive
  ::Pathname
end
value_coerced?(value) click to toggle source
# File lib/multi_sync/attributes/pathname.rb, line 12
def value_coerced?(value)
  value.is_a?(::Pathname)
end