Exception: CLI::UI::Formatter::FormatError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cli/ui/formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, input = nil, index = nil) ⇒ FormatError

Returns a new instance of FormatError.


57
58
59
60
61
# File 'lib/cli/ui/formatter.rb', line 57

def initialize(message = nil, input = nil, index = nil)
  super(message)
  @input = input
  @index = index
end

Instance Attribute Details

#indexObject

Returns the value of attribute index


55
56
57
# File 'lib/cli/ui/formatter.rb', line 55

def index
  @index
end

#inputObject

Returns the value of attribute input


55
56
57
# File 'lib/cli/ui/formatter.rb', line 55

def input
  @input
end