Class: Pericope::Parsing::ReferenceFragment

Inherits:
Struct
  • Object
show all
Defined in:
lib/pericope/parsing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#chapterObject

Returns the value of attribute chapter

Returns:

  • (Object)

    the current value of chapter



202
203
204
# File 'lib/pericope/parsing.rb', line 202

def chapter
  @chapter
end

#letterObject

Returns the value of attribute letter

Returns:

  • (Object)

    the current value of letter



202
203
204
# File 'lib/pericope/parsing.rb', line 202

def letter
  @letter
end

#verseObject

Returns the value of attribute verse

Returns:

  • (Object)

    the current value of verse



202
203
204
# File 'lib/pericope/parsing.rb', line 202

def verse
  @verse
end

Instance Method Details

#needs_verse?Boolean

Returns:

  • (Boolean)


203
204
205
# File 'lib/pericope/parsing.rb', line 203

def needs_verse?
  verse.nil?
end

#to_verse(book:) ⇒ Object



207
208
209
# File 'lib/pericope/parsing.rb', line 207

def to_verse(book:)
  Verse.new(book, chapter, verse, letter)
end