Class: Fack

Inherits:
Object
  • Object
show all
Defined in:
lib/fack.rb

Instance Method Summary collapse

Instance Method Details

#helpObject



4
5
6
# File 'lib/fack.rb', line 4

def help
  puts "To use: fack <search_string>"
end


8
9
10
# File 'lib/fack.rb', line 8

def print_check(a, b)
  puts a if a.include? b
end


12
13
14
# File 'lib/fack.rb', line 12

def print_find(start, file)
  Dir.glob('**/*') { |f| print_check(f, file) }
end