Class: Constant
- Inherits:
-
Object
- Object
- Constant
- Defined in:
- lib/constant.rb
Constant Summary collapse
- PICPATH =
'D:/'
Class Method Summary collapse
Class Method Details
.random ⇒ Object
5 6 7 8 9 |
# File 'lib/constant.rb', line 5 def Constant.random o = [('0'..'9'),('a'..'z'),('A'..'Z')].map{|i| i.to_a}.flatten; string = (0...50).map{ o[rand(o.length)] }.join; return string+'.png' end |