Skip to content

Instantly share code, notes, and snippets.

@Epigene Epigene/book.rb
Created Oct 14, 2017

Embed
What would you like to do?
Matching author and publisher names?
def with_characteristics?(characteristics_hash)
author.name == characteristics_hash[:author_name] &&
publisher.name == characteristics_hash[:publisher_name]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.