Exception: Orchestra::MissingInputError

Inherits:
Error
  • Object
show all
Defined in:
lib/orchestra/errors.rb

Instance Method Summary collapse

Methods inherited from Error

#list_out

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

#countObject



42
43
44
# File 'lib/orchestra/errors.rb', line 42

def count
  @missing_input.count
end

#to_sObject



46
47
48
# File 'lib/orchestra/errors.rb', line 46

def to_s
  "Missing input#{'s' unless count == 1} #{list_out @missing_input}"
end