lib/csd/extensions/core/object.rb in csd-0.1.9 vs lib/csd/extensions/core/object.rb in csd-0.1.10
- old
+ new
@@ -16,9 +16,10 @@
# my_pathname_object.pathnamify # => #<Pathname:my/path>
#
def pathnamify
case self
when ::Pathname then self
+ when NilClass then raise ::CSD::Error::Internal::PathnamifyingNil
else ::Pathname.new(self)
end
end
end