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.
-
#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
14 15 16 |
# File 'lib/xpgrep.rb', line 14 def attribute @attribute end |
#files_with_matches ⇒ Object
Returns the value of attribute files_with_matches
14 15 16 |
# File 'lib/xpgrep.rb', line 14 def files_with_matches @files_with_matches end |
#files_without_match ⇒ Object
Returns the value of attribute files_without_match
14 15 16 |
# File 'lib/xpgrep.rb', line 14 def files_without_match @files_without_match end |
#print_filename ⇒ Object
Returns the value of attribute 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 |