Class: Pidgin2Adium::FileFinder

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

Constant Summary collapse

EXTENSIONS =
%w(html htm txt)

Instance Method Summary collapse

Constructor Details

#initialize(directory) ⇒ FileFinder

Returns a new instance of FileFinder


5
6
7
# File 'lib/pidgin2adium/file_finder.rb', line 5

def initialize(directory)
  @directory = File.expand_path(directory)
end

Instance Method Details

#findObject


9
10
11
# File 'lib/pidgin2adium/file_finder.rb', line 9

def find
  Dir[glob]
end