Class: Fudge::FileFinder
- Inherits:
-
Object
- Object
- Fudge::FileFinder
- Defined in:
- lib/fudge/file_finder.rb
Overview
Allows building of commands which run against a set of files
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#generate_command(name, tty_options) ⇒ Object
Generates a command line with command and any tty_option.
-
#initialize(options = {}) ⇒ FileFinder
constructor
A new instance of FileFinder.
Constructor Details
#initialize(options = {}) ⇒ FileFinder
Returns a new instance of FileFinder.
6 7 8 |
# File 'lib/fudge/file_finder.rb', line 6 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/fudge/file_finder.rb', line 4 def @options end |
Instance Method Details
#generate_command(name, tty_options) ⇒ Object
Generates a command line with command and any tty_option
11 12 13 14 15 16 17 |
# File 'lib/fudge/file_finder.rb', line 11 def generate_command(name, ) cmd = [] cmd << name cmd += cmd << "`#{find_filters.join(' | ')}`" cmd.join(' ') end |