Module: Nyan::Tail

Defined in:
lib/nyan/sprites/tail.rb

Constant Summary collapse

SHAPE_LIST =
<<-EOF
..................
..................
..................
..................
..................
--
..................
..................
..................
..................
..................
--
..................
..................
..................
..................
..................
EOF

Class Method Summary collapse

Class Method Details

.to_framesObject



23
24
25
# File 'lib/nyan/sprites/tail.rb', line 23

def self.to_frames
  @frames ||= SHAPE_LIST.gsub(/\./, SPACE).gsub(/X/, BLOCK).split(/--./m)
end