class Giggle
Constants
- JOKES
Public Class Methods
random_joke()
click to toggle source
# File lib/giggle.rb, line 20 def self.random_joke random = Random.new random_array_index = random.rand(JOKES.length - 1) JOKES[random_array_index] end
start()
click to toggle source
# File lib/giggle.rb, line 16 def self.start puts "Hehe!" end