Class: Clr::Search::Item

Inherits:
Struct
  • Object
show all
Defined in:
lib/clr/search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filepathObject

Returns the value of attribute filepath

Returns:

  • (Object)

    the current value of filepath



5
6
7
# File 'lib/clr/search.rb', line 5

def filepath
  @filepath
end

#matchesObject

Returns the value of attribute matches

Returns:

  • (Object)

    the current value of matches



5
6
7
# File 'lib/clr/search.rb', line 5

def matches
  @matches
end

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



5
6
7
# File 'lib/clr/search.rb', line 5

def pattern
  @pattern
end

Instance Method Details

#matches_countObject



6
7
8
# File 'lib/clr/search.rb', line 6

def matches_count
  matches.count
end