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.



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

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.



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

def index
  @index
end

#inputObject

Returns the value of attribute input.



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

def input
  @input
end