Class: XPGrep::CLI::Options

Inherits:
Struct
  • Object
show all
Includes:
Singleton
Defined in:
lib/xpgrep.rb,
lib/xpgrep.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



14
15
16
# File 'lib/xpgrep.rb', line 14

def attribute
  @attribute
end

#files_with_matchesObject

Returns the value of attribute files_with_matches

Returns:

  • (Object)

    the current value of files_with_matches



14
15
16
# File 'lib/xpgrep.rb', line 14

def files_with_matches
  @files_with_matches
end

#files_without_matchObject

Returns the value of attribute files_without_match

Returns:

  • (Object)

    the current value of files_without_match



14
15
16
# File 'lib/xpgrep.rb', line 14

def files_without_match
  @files_without_match
end

Returns the value of attribute print_filename

Returns:

  • (Object)

    the current value of print_filename



14
15
16
# File 'lib/xpgrep.rb', line 14

def print_filename
  @print_filename
end

Instance Method Details

#files_with_matches!Object



24
25
26
# File 'lib/xpgrep.rb', line 24

def files_with_matches!
  self.files_with_matches = true
end

#files_without_match!Object



33
34
35
# File 'lib/xpgrep.rb', line 33

def files_without_match!
  self.files_without_match = true
end