Guest User

Untitled

a guest
May 27th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. require 'yaml'
  4.  
  5. begin
  6. YAML.load(STDIN)
  7. puts '<h1 style="color: green;">GOOD</h1>'
  8. rescue Exception => e
  9. puts '<h1 style="color: red;">BAD</h1>'
  10. puts e.message
  11. end
Add Comment
Please, Sign In to add comment