Class: Rubygrep::RubyGrepOptions
- Inherits:
-
Object
- Object
- Rubygrep::RubyGrepOptions
- Defined in:
- lib/rubygrep/ruby_grep_options.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
Returns the value of attribute expression.
-
#file_names ⇒ Object
Returns the value of attribute file_names.
-
#file_reader_options ⇒ Object
Returns the value of attribute file_reader_options.
-
#general_output_options ⇒ Object
Returns the value of attribute general_output_options.
-
#matcher_options ⇒ Object
Returns the value of attribute matcher_options.
-
#outputter_options ⇒ Object
Returns the value of attribute outputter_options.
Instance Method Summary collapse
-
#initialize(args) ⇒ RubyGrepOptions
constructor
A new instance of RubyGrepOptions.
- #set_multi_file_mode ⇒ Object
Constructor Details
#initialize(args) ⇒ RubyGrepOptions
Returns a new instance of RubyGrepOptions.
6 7 8 9 |
# File 'lib/rubygrep/ruby_grep_options.rb', line 6 def initialize(args) @file_reader_options, @matcher_options, @outputter_options = {}, {}, {} (args) end |
Instance Attribute Details
#expression ⇒ Object
Returns the value of attribute expression.
3 4 5 |
# File 'lib/rubygrep/ruby_grep_options.rb', line 3 def expression @expression end |
#file_names ⇒ Object
Returns the value of attribute file_names.
3 4 5 |
# File 'lib/rubygrep/ruby_grep_options.rb', line 3 def file_names @file_names end |
#file_reader_options ⇒ Object
Returns the value of attribute file_reader_options.
3 4 5 |
# File 'lib/rubygrep/ruby_grep_options.rb', line 3 def @file_reader_options end |
#general_output_options ⇒ Object
Returns the value of attribute general_output_options.
3 4 5 |
# File 'lib/rubygrep/ruby_grep_options.rb', line 3 def @general_output_options end |
#matcher_options ⇒ Object
Returns the value of attribute matcher_options.
3 4 5 |
# File 'lib/rubygrep/ruby_grep_options.rb', line 3 def @matcher_options end |
#outputter_options ⇒ Object
Returns the value of attribute outputter_options.
3 4 5 |
# File 'lib/rubygrep/ruby_grep_options.rb', line 3 def @outputter_options end |
Instance Method Details
#set_multi_file_mode ⇒ Object
11 12 13 |
# File 'lib/rubygrep/ruby_grep_options.rb', line 11 def set_multi_file_mode [:with_filename] = true end |