Method: Ore::Naming#namespace_dirs_of

Defined in:
lib/ore/naming.rb

#namespace_dirs_of(name) ⇒ Array<String>

Guesses the namespace directories within lib/ for a project.

Parameters:

  • name (String)

    The name of the project.

Returns:

  • (Array<String>)

    The namespace directories for the project.



141
142
143
# File 'lib/ore/naming.rb', line 141

def namespace_dirs_of(name)
  names_in(name).map { |word| underscore(word) }
end