Class: Kj::Bible
- Inherits:
-
Object
- Object
- Kj::Bible
- Defined in:
- lib/kj.rb
Class Method Summary collapse
Instance Method Summary collapse
- #at(percent) ⇒ Object
- #book(name_or_number) ⇒ Object
- #books(*names_or_numbers) ⇒ Object
- #page(page) ⇒ Object
- #random_book ⇒ Object
- #random_chapter ⇒ Object
- #random_verse ⇒ Object
Class Method Details
.page_count ⇒ Object
37 38 39 |
# File 'lib/kj.rb', line 37 def self.page_count Verse.page_count end |
Instance Method Details
#at(percent) ⇒ Object
29 30 31 |
# File 'lib/kj.rb', line 29 def at(percent) Verse.at(percent) end |
#book(name_or_number) ⇒ Object
9 10 11 |
# File 'lib/kj.rb', line 9 def book(name_or_number) Book.from_name_or_number(name_or_number) end |
#books(*names_or_numbers) ⇒ Object
13 14 15 |
# File 'lib/kj.rb', line 13 def books(*names_or_numbers) names_or_numbers.empty? ? Book.all : Book.from_names_or_numbers(names_or_numbers) end |