-
-
Save Dysp/bff30110367da1a77c60f8a683edd150 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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