Class: BiblePassage::InvalidReference
- Defined in:
- lib/bible_passage/invalid_reference.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Attributes inherited from Reference
#book, #book_key, #child, #parent
Instance Method Summary collapse
-
#initialize(message) ⇒ InvalidReference
constructor
A new instance of InvalidReference.
- #valid? ⇒ Boolean
Methods inherited from Reference
#==, #attributes, #from_chapter, #from_chapter=, #from_verse, #from_verse=, #inheritable_attributes, parse, parse_child, #parse_child, #to_chapter, #to_chapter=, #to_s, #to_verse, #to_verse=, #whole_book?, #whole_chapter?, #whole_chapters?
Constructor Details
#initialize(message) ⇒ InvalidReference
Returns a new instance of InvalidReference.
5 6 7 |
# File 'lib/bible_passage/invalid_reference.rb', line 5 def initialize() @error = end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
3 4 5 |
# File 'lib/bible_passage/invalid_reference.rb', line 3 def error @error end |
Instance Method Details
#valid? ⇒ Boolean
9 10 11 |
# File 'lib/bible_passage/invalid_reference.rb', line 9 def valid? false end |