Skip to content

A Ruby Gem that allows the user to obtain the number of verses total for each chapter of the Bible.

Notifications You must be signed in to change notification settings

kkuivenhoven/VerseCount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VerseCount Gem

A Ruby Gem that allows the user to obtain the number of verses total for each chapter of the Bible.
Additional gem information (i.e. download count, etc.) also available here.
VerseCount

Getting Started

  1. Add to Gemfile gem 'verse_count'
  2. Run $ bundle install
  3. Add require 'verse_count'
  4. Initialize library: VerseCount.init
  5. Call any available method (examples listed below)

Available methods:

  1. Get all books of the Bible:
    @books = VerseCount.getBooksOfBible

  2. Get total number of chapters for a particular book of the Bible.
    For example, to get the total number of chapters for the book of Genesis:
    @chapter_count = VerseCount.getNumberOfChapters("Genesis")

  3. Get total verse count for a particular chapter and book of the Bible.
    For example, to get the total number of verses for chapter 1 of the book of Genesis:
    @genesis_ch1_count = VerseCount.getVerseCountForChapter("Genesis", 1)

  4. Get total verse count for all chapters of each book of the Bible.
    For example, to get the total verses for all chapters of Genesis:
    @genesis_count = VerseCount.getTotalBookVerseCount

About

A Ruby Gem that allows the user to obtain the number of verses total for each chapter of the Bible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages