class NoEntryError

Public Class Methods

new(target_entry) click to toggle source

Raised when a given entry does not exist in the compendium

Parameters:

* `target_entry`: Non-existant input entry that causes error.
    - type: str, int
Calls superclass method
# File lib/hyrule_compendium.rb, line 13
def initialize(target_entry)
    if target_entry.is_a? String
        super "Entry with name '#{target_entry}' not in compendium."
    elsif target_entry.is_a? Integer
        super "Entry with ID '#{target_entry}' not in compendium."
    end
end