Skip to content

Instantly share code, notes, and snippets.

@cmeiklejohn
Created September 13, 2011 20:22
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 cmeiklejohn/1215034 to your computer and use it in GitHub Desktop.
Save cmeiklejohn/1215034 to your computer and use it in GitHub Desktop.
.--.-.
( ( )__
(_, \ ) ,_) |
'-'--`--' ~~| , \ _ /
,|`-._/| -== (_) ==-
^^ .' | /||\ / \
^^ .' | ./ ||`\ |
/ `-. |/._ || \
/ `|| `|;-._\
| || || \
~^~_~^~_-~^~=~^~~^= / || ||__ \~^=~^~-~^~_~^~=~^~-~^~
~^~ ~=~^~ _~^~ =~ `--------|`---|| `"-`___~~^~ =_~^=~~^~=`~^
jgs ~^~=~^_~^~ =~ \~~~~~~~'~~~~'~~~~/~~`` ~=~^~ ~^=_~^~ ~~^
~^~ ~^=~^~_~-=~^~ ^ `--------------'~^~=~^~_~^=~^~=~ ~^~-~^=
~^~=~ ~^=~^~ ~^~^=~^~-~^~ ~^~=~^~^~ =~^~^=~^~^=~^~^ =~~`~^
~^~= ~^~= ~~^~~`=~``^~^^~= ~^=~^~^~^ =`^~^`^~^=~^~-~~^
module Ascii
class Schooner
attr_reader :sail_number
def initialize(sail_number)
@sail_number = sail_number
end
def to_s
<<-EOF
.--.-.
( ( )__
(_, /\ ) ,_) |
'-'--`--' ~~| , \\ _ \/
,|`-._\/| -== (_) ==-
^^ .' | \/||\\ \/ \\
^^ .' | .\/ ||`\\ |
/ `-. |\/._ || \\
/ `|| `|;-._\\
| #{sail_number} || || \\
~^~_~^~_-~^~=~^~~^= // || ||__ /\~^=~^~-~^~_~^~=~^~-~^~
~^~ ~=~^~ _~^~ =~ `--------|`---|| `"-`___~~^~ =_~^=~~^~=`~^
jgs ~^~=~^_~^~ =~ \\~~~~~~~'~~~~'~~~~\/~~`` ~=~^~ ~^=_~^~ ~~^
~^~ ~^=~^~_~-=~^~ ^ `--------------'~^~=~^~_~^=~^~=~ ~^~-~^=
~^~=~ ~^=~^~ ~^~^=~^~-~^~ ~^~=~^~^~ =~^~^=~^~^=~^~^ =~~`~^
~^~= ~^~= ~~^~~`=~``^~^^~= ~^=~^~^~^ =`^~^`^~^=~^~-~~^
EOF
end
end
end
puts Ascii::Schooner.new(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment