class AsciiArtist::Art

Attributes

art_text[RW]
index[RW]

Public Class Methods

all() click to toggle source
# File lib/art.rb, line 13
def self.all
    @@all
end
clear() click to toggle source
# File lib/art.rb, line 17
def self.clear
    @@all = []        
end
new(art, index) click to toggle source
# File lib/art.rb, line 7
def initialize(art, index)
    @art_text = art
    @index = index
    @@all << self
end

Public Instance Methods

add_to_favorites() click to toggle source
# File lib/art.rb, line 21
def add_to_favorites
    @@favorites << self
end