Class: Doraemon::DJImage
- Inherits:
-
Object
- Object
- Doraemon::DJImage
- Defined in:
- lib/doraemon/utils/djimage.rb
Class Method Summary collapse
Class Method Details
.at(index) ⇒ Object
17 18 19 20 21 |
# File 'lib/doraemon/utils/djimage.rb', line 17 def self.at(index) index = index % $image_list.length path = $image_list[index] "#{$image_host}/#{path}" end |
.local(path) ⇒ Object
23 24 25 |
# File 'lib/doraemon/utils/djimage.rb', line 23 def self.local(path) end |
.random ⇒ Object
12 13 14 15 |
# File 'lib/doraemon/utils/djimage.rb', line 12 def self.random path = $image_list.sample "#{$image_host}/#{path}" end |