Class: SampleFile::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/sample_file/base.rb

Direct Known Subclasses

Image, Video

Instance Method Summary collapse

Instance Method Details

#fileObject



3
4
5
# File 'lib/sample_file/base.rb', line 3

def file
  File.open file_path
end

#file_pathObject

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/sample_file/base.rb', line 7

def file_path
  raise NotImplementedError, "#{self.class} does not implement the file_path method"
end