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.



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

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

Instance Attribute Details

#indexObject

Returns the value of attribute index.



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

def index
  @index
end

#inputObject

Returns the value of attribute input.



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

def input
  @input
end