Class: FuzzyFileFinder::CharacterRun
- Inherits:
-
Struct
- Object
- Struct
- FuzzyFileFinder::CharacterRun
- Defined in:
- lib/ver/vendor/fuzzy_file_finder.rb
Overview
Used internally to represent a run of characters within a match. This is used to build the highlighted version of a file name.
Instance Attribute Summary collapse
-
#inside ⇒ Object
Returns the value of attribute inside.
-
#string ⇒ Object
Returns the value of attribute string.
Instance Method Summary collapse
- #to_s ⇒ Object (also: #to_str)
Instance Attribute Details
#inside ⇒ Object
Returns the value of attribute inside
53 54 55 |
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 53 def inside @inside end |
#string ⇒ Object
Returns the value of attribute string
53 54 55 |
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 53 def string @string end |
Instance Method Details
#to_s ⇒ Object Also known as: to_str
54 55 56 57 58 59 60 |
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 54 def to_s if inside "(#{string})" else string end end |