Skip to content

Instantly share code, notes, and snippets.

@Dysp

Dysp/output.rb Secret

Created June 26, 2016 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dysp/bff30110367da1a77c60f8a683edd150 to your computer and use it in GitHub Desktop.
Save Dysp/bff30110367da1a77c60f8a683edd150 to your computer and use it in GitHub Desktop.
module Output
def output_to(excel: false, pdf: false)
case self
when Kincom
puts "Class er kincom"
puts "Jeg spytter ud excel: #{excel.to_s}, og pdf: #{pdf.to_s}"
when String
puts "Class er string"
puts "Jeg spytter ud excel: #{excel.to_s}, og pdf: #{pdf.to_s}"
else
puts "Jeg er forvirret"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment