Class: EncodingChecker::LineMatch
- Inherits:
-
Struct
- Object
- Struct
- EncodingChecker::LineMatch
- Defined in:
- lib/encoding_checker.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#index ⇒ Object
Returns the value of attribute index.
-
#invalid_characters ⇒ Object
Returns the value of attribute invalid_characters.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
52 53 54 |
# File 'lib/encoding_checker.rb', line 52 def content @content end |
#index ⇒ Object
Returns the value of attribute index
52 53 54 |
# File 'lib/encoding_checker.rb', line 52 def index @index end |
#invalid_characters ⇒ Object
Returns the value of attribute invalid_characters
52 53 54 |
# File 'lib/encoding_checker.rb', line 52 def invalid_characters @invalid_characters end |
Instance Method Details
#to_s ⇒ Object
53 54 55 |
# File 'lib/encoding_checker.rb', line 53 def to_s %(#{index}: "#{content.force_encoding('utf-8')}") end |