Class: Pericope::Parsing::ReferenceFragment
- Inherits:
-
Struct
- Object
- Struct
- Pericope::Parsing::ReferenceFragment
- Defined in:
- lib/pericope/parsing.rb
Instance Attribute Summary collapse
-
#chapter ⇒ Object
Returns the value of attribute chapter.
-
#letter ⇒ Object
Returns the value of attribute letter.
-
#verse ⇒ Object
Returns the value of attribute verse.
Instance Method Summary collapse
Instance Attribute Details
#chapter ⇒ Object
Returns the value of attribute chapter
172 173 174 |
# File 'lib/pericope/parsing.rb', line 172 def chapter @chapter end |
#letter ⇒ Object
Returns the value of attribute letter
172 173 174 |
# File 'lib/pericope/parsing.rb', line 172 def letter @letter end |
#verse ⇒ Object
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 |