Exception: Poefy::MissingFormOrRhyme
- Inherits:
-
InputError
- Object
- StandardError
- Error
- InputError
- Poefy::MissingFormOrRhyme
- Defined in:
- lib/poefy/exceptions.rb
Instance Method Summary collapse
- #console_msg ⇒ Object
-
#initialize ⇒ MissingFormOrRhyme
constructor
A new instance of MissingFormOrRhyme.
- #msg ⇒ Object
Constructor Details
#initialize ⇒ MissingFormOrRhyme
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_msg ⇒ Object
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 |
#msg ⇒ Object
28 29 30 |
# File 'lib/poefy/exceptions.rb', line 28 def msg "No valid rhyme or form input specified" end |