Module: JobInterview::Quine

Included in:
Answer
Defined in:
lib/job_interview/quine.rb

Instance Method Summary collapse

Instance Method Details

#quine(file = nil) ⇒ Object



4
5
6
7
# File 'lib/job_interview/quine.rb', line 4

def quine(file = nil)
  file ||= caller.first.split(':').first
  return File.read(file)
end