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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from T::Sig

sig

Constructor Details

#initialize(message, input, index) ⇒ FormatError

Returns a new instance of FormatError.



74
75
76
77
78
# File 'lib/cli/ui/formatter.rb', line 74

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

Instance Attribute Details

#indexObject

Returns the value of attribute index.



71
72
73
# File 'lib/cli/ui/formatter.rb', line 71

def index
  @index
end

#inputObject

Returns the value of attribute input.



68
69
70
# File 'lib/cli/ui/formatter.rb', line 68

def input
  @input
end