lib/eat.rb in eat-0.0.5 vs lib/eat.rb in eat-0.0.6

- old
+ new

@@ -16,10 +16,10 @@ module ObjectExtensions def eat(filesystem_path_or_uri) uri = ::URI.parse filesystem_path_or_uri case uri.scheme - when nil + when 'file', nil if ::File.readable? uri.path ::File.read uri.path else `sudo /bin/cat #{uri.path}` end