Module: HaarJoke

Defined in:
lib/haar_joke.rb,
lib/haar_joke/joke.rb,
lib/haar_joke/version.rb

Overview

This module contains a Joke class for creating jokes featuring the fire Emblem Haar (using Chuck Norris jokes from api.icndb.com). It also contains a method for creating a joke and getting returning the joke

Defined Under Namespace

Classes: Joke

Constant Summary collapse

VERSION =
'0.0.2'.freeze

Class Method Summary collapse

Class Method Details

.create_custom_jokeObject

user can create joke with their own file



22
23
24
25
# File 'lib/haar_joke.rb', line 22

def self.create_custom_joke
  @config = use_custom_file
  create_joke
end

.create_jokeObject

user can create joke with custom settings



16
17
18
19
# File 'lib/haar_joke.rb', line 16

def self.create_joke
  joke = Joke.new
  joke.text
end