Class: FuzzyFileFinder::CharacterRun

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#insideObject

Returns the value of attribute inside

Returns:

  • (Object)

    the current value of inside



53
54
55
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 53

def inside
  @inside
end

#stringObject

Returns the value of attribute string

Returns:

  • (Object)

    the current value of string



53
54
55
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 53

def string
  @string
end

Instance Method Details

#to_sObject 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