Class: XPGrep::CLI::Options
- Inherits:
-
Struct
- Object
- Struct
- XPGrep::CLI::Options
- Includes:
- Singleton
- Defined in:
- lib/xpgrep.rb,
lib/xpgrep.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#files_with_matches ⇒ Object
Returns the value of attribute files_with_matches.
-
#files_without_match ⇒ Object
Returns the value of attribute files_without_match.
-
#parse_as_html ⇒ Object
Returns the value of attribute parse_as_html.
-
#print_filename ⇒ Object
Returns the value of attribute print_filename.
Instance Method Summary collapse
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute
20 21 22 |
# File 'lib/xpgrep.rb', line 20 def attribute @attribute end |
#files_with_matches ⇒ Object
Returns the value of attribute files_with_matches
20 21 22 |
# File 'lib/xpgrep.rb', line 20 def files_with_matches @files_with_matches end |
#files_without_match ⇒ Object
Returns the value of attribute files_without_match
20 21 22 |
# File 'lib/xpgrep.rb', line 20 def files_without_match @files_without_match end |
#parse_as_html ⇒ Object
Returns the value of attribute parse_as_html
20 21 22 |
# File 'lib/xpgrep.rb', line 20 def parse_as_html @parse_as_html end |
#print_filename ⇒ Object
Returns the value of attribute 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 |