Class: Kj::Bible

Inherits:
Object
  • Object
show all
Defined in:
lib/kj.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.page_countObject



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

#page(page) ⇒ Object



33
34
35
# File 'lib/kj.rb', line 33

def page(page)
  Verse.page(page)
end

#random_bookObject



17
18
19
# File 'lib/kj.rb', line 17

def random_book
  Book.random
end

#random_chapterObject



21
22
23
# File 'lib/kj.rb', line 21

def random_chapter
  Chapter.random
end

#random_verseObject



25
26
27
# File 'lib/kj.rb', line 25

def random_verse
  Verse.random
end