Class: Fack
- Inherits:
-
Object
- Object
- Fack
- Defined in:
- lib/fack.rb
Instance Method Summary collapse
Instance Method Details
#help ⇒ Object
4 5 6 |
# File 'lib/fack.rb', line 4 def help puts "To use: fack <search_string>" end |
#print_check(a, b) ⇒ Object
8 9 10 |
# File 'lib/fack.rb', line 8 def print_check(a, b) puts a if a.include? b end |
#print_find(start, file) ⇒ Object
12 13 14 |
# File 'lib/fack.rb', line 12 def print_find(start, file) Dir.glob('**/*') { |f| print_check(f, file) } end |