Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/plus1s.rb

Instance Method Summary collapse

Instance Method Details

#sObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/plus1s.rb', line 6

def s
  if self > 0
    print '
  /#######################\      /#######################\    
 /#########################\----/#########################\   
/###/                  \############/                  \###\  
 /###/                    \##########/                    \###\ 
|###|                      |########|                      |###|
|###|                      |########|                      |###|
|###|                      |########|                      |###|
|###|                      |########|                      |###|
|###|                      |########|                      |###|
 \###\                    /##########\                    /###/ 
\###\                  /############\                  /###/  
 \#########################/----\#########################/   
  \#######################/      \#######################/
'*self
  else
    raise LifeError.new "Premisson denied."
  end
end