Method: Hanami::Utils::LoadPaths#initialize

Defined in:
lib/hanami/utils/load_paths.rb

#initialize(*paths) ⇒ Hanami::Utils::LoadPaths

Initialize a new collection for the given paths

Parameters:

  • paths (String, Pathname, Array<String>, Array<Pathname>)

    A single or a collection of objects that can be converted into a Pathname

See Also:

Since:

  • 0.2.0



22
23
24
# File 'lib/hanami/utils/load_paths.rb', line 22

def initialize(*paths)
  @paths = Utils::Kernel.Array(paths)
end