Method: H2o::FileLoader#initialize
- Defined in:
- lib/h2o/file_loader.rb
#initialize(path) ⇒ FileLoader
Returns a new instance of FileLoader.
5 6 7 8 9 |
# File 'lib/h2o/file_loader.rb', line 5 def initialize(path) raise "Search path not found" unless File.exist?(path) self.path = Pathname.new(path) end |