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



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

def content
  @content
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



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

def index
  @index
end

Instance Method Details

#to_sObject



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

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