Skip to content

Commit

Permalink
pass all options through to the generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian C. Anderson committed Dec 12, 2014
1 parent 13e5a86 commit 99b686d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/girls_just_want_to_have_puns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 99b686d

Please sign in to comment.