Class: EncodingChecker::CharacterMatch

Inherits:
Struct
  • Object
show all
Defined in:
lib/encoding_checker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



58
59
60
# File 'lib/encoding_checker.rb', line 58

def content
  @content
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



58
59
60
# File 'lib/encoding_checker.rb', line 58

def index
  @index
end

Instance Method Details

#to_sObject



59
60
61
# File 'lib/encoding_checker.rb', line 59

def to_s
  "#{content.inspect} (#{index})"
end