From 99b686d9d7adde03eea00feda534b73ba7b547e1 Mon Sep 17 00:00:00 2001 From: "Ian C. Anderson" Date: Thu, 11 Dec 2014 20:11:33 -0500 Subject: [PATCH] pass all options through to the generator --- lib/girls_just_want_to_have_puns.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/girls_just_want_to_have_puns.rb b/lib/girls_just_want_to_have_puns.rb index d225f34..88d942e 100644 --- a/lib/girls_just_want_to_have_puns.rb +++ b/lib/girls_just_want_to_have_puns.rb @@ -3,12 +3,12 @@ module GirlsJustWantToHavePuns - def self.pun(keyword, rhymes: nil, source_phrases: nil) - PunGenerator.new(keyword, rhymes: rhymes, source_phrases: source_phrases).pun + def self.pun(keyword, options = {}) + PunGenerator.new(keyword, options).pun end - def self.puns(keyword, rhymes: nil, source_phrases: nil) - PunGenerator.new(keyword, rhymes: rhymes, source_phrases: source_phrases).puns + def self.puns(keyword, options = {}) + PunGenerator.new(keyword, options).puns end end