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
14 15 16 17 18 |
# File 'lib/doraemon/utils/djimage.rb', line 14 def self.at(index) index = index % $image_list.length path = $image_list[index] "#{$image_host}/#{path}" end |
.local(path) ⇒ Object
20 21 22 |
# File 'lib/doraemon/utils/djimage.rb', line 20 def self.local(path) end |
.random ⇒ Object
9 10 11 12 |
# File 'lib/doraemon/utils/djimage.rb', line 9 def self.random path = $image_list.sample "#{$image_host}/#{path}" end |