class KXI::Exceptions::VerbExpectedException
Raised when specific verb was expected
Public Class Methods
new(verbs)
click to toggle source
Instantiates the {KXI::CLI::VerbExpectedException} class @param verbs [Array<String>] Expected verbs
Calls superclass method
# File lib/kxi/exceptions/verb_expected_exception.rb, line 15 def initialize(verbs) super("Expected verb! (#{verbs.join(', ')})") @verbs = verbs end
Public Instance Methods
verbs()
click to toggle source
Gets array of verbs that were expected @return [Array<String>] Expected verbs
# File lib/kxi/exceptions/verb_expected_exception.rb, line 9 def verbs @verbs end