class AsciiParadise::Ponies

Constants

ALL_PONIES
#

AsciiParadise::ALL_PONIES

Obtain all ponies next.

#
FILE_PONIES
#

FILE_PONIES

#
SEPARATOR
#

SEPARATOR

In order for this separator-constant to work, the file needs to have at the least two “nn” in series.

#

Public Class Methods

new() click to toggle source
#

initialize

#
Calls superclass method AsciiParadise::Base::new
# File lib/ascii_paradise/static_ascii/ponies.rb, line 40
def initialize
  super()
  puts ALL_PONIES.sample # Obtain a random pony. .readlines() will use "\n\n" as splitter.
end