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.



72
73
74
75
76
# File 'lib/cli/ui/formatter.rb', line 72

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

Instance Attribute Details

#indexObject

Returns the value of attribute index.



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

def index
  @index
end

#inputObject

Returns the value of attribute input.



66
67
68
# File 'lib/cli/ui/formatter.rb', line 66

def input
  @input
end