Exception: Orchestra::MissingInputError
- Defined in:
- lib/orchestra/errors.rb
Instance Method Summary collapse
- #count ⇒ Object
-
#initialize(missing_input) ⇒ MissingInputError
constructor
A new instance of MissingInputError.
- #to_s ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(missing_input) ⇒ MissingInputError
Returns a new instance of MissingInputError.
38 39 40 |
# File 'lib/orchestra/errors.rb', line 38 def initialize missing_input @missing_input = missing_input end |
Instance Method Details
#count ⇒ Object
42 43 44 |
# File 'lib/orchestra/errors.rb', line 42 def count @missing_input.count end |
#to_s ⇒ Object
46 47 48 |
# File 'lib/orchestra/errors.rb', line 46 def to_s "Missing input#{'s' unless count == 1} #{list_out @missing_input}" end |