Class: EncodingChecker::LineMatch

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



52
53
54
# File 'lib/encoding_checker.rb', line 52

def content
  @content
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



52
53
54
# File 'lib/encoding_checker.rb', line 52

def index
  @index
end

#invalid_charactersObject

Returns the value of attribute invalid_characters

Returns:

  • (Object)

    the current value of invalid_characters



52
53
54
# File 'lib/encoding_checker.rb', line 52

def invalid_characters
  @invalid_characters
end

Instance Method Details

#to_sObject



53
54
55
# File 'lib/encoding_checker.rb', line 53

def to_s
  %(#{index}: "#{content.force_encoding('utf-8')}")
end