Method: Ore::Config.builtin_templates

Defined in:
lib/ore/config.rb

.builtin_templates {|path| ... } ⇒ Object

The builtin templates.

Yields:

  • (path)

    The given block will be passed every builtin template.

Yield Parameters:

  • path (String)

    The path of a Ore template directory.



81
82
83
84
85
86
87
88
89
# File 'lib/ore/config.rb', line 81

def Config.builtin_templates
  path = File.join(DATA_DIR,'ore','templates')

  if File.directory?(path)
    Dir.glob("#{path}/*") do |template|
      yield template if File.directory?(template)
    end
  end
end