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



172
173
174
# File 'lib/pericope/parsing.rb', line 172

def chapter
  @chapter
end

#letterObject

Returns the value of attribute letter



172
173
174
# File 'lib/pericope/parsing.rb', line 172

def letter
  @letter
end

#verseObject

Returns the value of attribute verse



172
173
174
# File 'lib/pericope/parsing.rb', line 172

def verse
  @verse
end

Instance Method Details

#needs_verse?Boolean



173
174
175
# File 'lib/pericope/parsing.rb', line 173

def needs_verse?
  verse.nil?
end

#to_verse(book:) ⇒ Object



177
178
179
# File 'lib/pericope/parsing.rb', line 177

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