Module: Mchat::Welcome

Included in:
Repl
Defined in:
lib/mchat/comps/welcome.rb

Instance Method Summary collapse

Instance Method Details

#display_ascii_artObject



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/mchat/comps/welcome.rb', line 9

def display_ascii_art
  # https://rubygems.org/gems/artii
content = "  __  __      _           _\n |  \\/  |    | |         | |\n | \\  / | ___| |__   __ _| |_\n | |\\/| |/ __| '_ \\ / _` | __|\n | |  | | (__| | | | (_| | |_\n |_|  |_|\\___|_| |_|\\__,_|\\__|\n\n"
content.style.jade
end

#welcome(switch) ⇒ Object



3
4
5
6
7
# File 'lib/mchat/comps/welcome.rb', line 3

def welcome(switch)
  if switch
    display_ascii_art
  end
end