lib/eat.rb in eat-0.0.6 vs lib/eat.rb in eat-0.0.7
- old
+ new
@@ -14,10 +14,10 @@
end
end
module ObjectExtensions
def eat(filesystem_path_or_uri)
- uri = ::URI.parse filesystem_path_or_uri
+ uri = ::URI.parse filesystem_path_or_uri.to_s
case uri.scheme
when 'file', nil
if ::File.readable? uri.path
::File.read uri.path
else