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



20
21
22
# File 'lib/xpgrep.rb', line 20

def attribute
  @attribute
end

#files_with_matchesObject

Returns the value of attribute files_with_matches

Returns:

  • (Object)

    the current value of files_with_matches



20
21
22
# File 'lib/xpgrep.rb', line 20

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



20
21
22
# File 'lib/xpgrep.rb', line 20

def files_without_match
  @files_without_match
end

#parse_as_htmlObject

Returns the value of attribute parse_as_html

Returns:

  • (Object)

    the current value of parse_as_html



20
21
22
# File 'lib/xpgrep.rb', line 20

def parse_as_html
  @parse_as_html
end

Returns the value of attribute print_filename

Returns:

  • (Object)

    the current value of print_filename



20
21
22
# File 'lib/xpgrep.rb', line 20

def print_filename
  @print_filename
end

Instance Method Details

#files_with_matches!Object



30
31
32
# File 'lib/xpgrep.rb', line 30

def files_with_matches!
  self.files_with_matches = true
end

#files_without_match!Object



39
40
41
# File 'lib/xpgrep.rb', line 39

def files_without_match!
  self.files_without_match = true
end