Exception: Poefy::MissingFormOrRhyme

Inherits:
InputError show all
Defined in:
lib/poefy/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initializeMissingFormOrRhyme

Returns a new instance of MissingFormOrRhyme.



36
37
38
# File 'lib/poefy/exceptions.rb', line 36

def initialize
  super msg, console_msg
end

Instance Method Details

#console_msgObject



31
32
33
34
35
# File 'lib/poefy/exceptions.rb', line 31

def console_msg
    "ERROR: No valid rhyme or form option specified." +
  "\n       Try again using the -f or -r option." +
  "\n       Use -h or --help to view valid forms."
end

#msgObject



28
29
30
# File 'lib/poefy/exceptions.rb', line 28

def msg
  "No valid rhyme or form input specified"
end