Class: BiblePassage::InvalidReference

Inherits:
Reference
  • Object
show all
Defined in:
lib/bible_passage/invalid_reference.rb

Instance Attribute Summary collapse

Attributes inherited from Reference

#book, #book_key, #child, #parent

Instance Method Summary collapse

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(message)
  @error = message
end

Instance Attribute Details

#errorObject (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

Returns:

  • (Boolean)


9
10
11
# File 'lib/bible_passage/invalid_reference.rb', line 9

def valid?
  false
end