Method: Roby::Application#find_file
- Defined in:
- lib/roby/app.rb
#find_file(*args) ⇒ Object
Returns the first match from #find_files, or nil if nothing matches
2762 2763 2764 2765 2766 2767 2768 2769 |
# File 'lib/roby/app.rb', line 2762 def find_file(*args) unless args.last.kind_of?(Hash) args.push({}) end args.last.delete("all") args.last.merge!(all: true) find_files(*args).first end |