Method: Etna::Filesystem#with_readable

Defined in:
lib/etna/filesystem.rb

#with_readable(src, opts = 'r', &block) ⇒ Object



27
28
29
30
# File 'lib/etna/filesystem.rb', line 27

def with_readable(src, opts = 'r', &block)
  raise Etna::Filesystem::Error, "with_readable not supported by #{self.class.name}" unless self.class == Filesystem
  ::File.open(src, opts, &block)
end