class ProgrammerJoke

Constants

AVAILABLE_LANGUAGES

Public Class Methods

joke(language = 'English') click to toggle source
# File lib/programmer_joke.rb, line 11
def self.joke(language = 'English')
  puts "\n"
  jokes = Joke.new(language)
  puts jokes.joke
  puts "\n"
end
languages() click to toggle source
# File lib/programmer_joke.rb, line 5
def self.languages
  puts "\n"
  AVAILABLE_LANGUAGES.each { |language| puts "--> #{language}" }
  puts "\n"
end