Method: Tailor::Configuration#recursive_file_set

Defined in:
lib/tailor/configuration.rb

#recursive_file_set(file_expression, label = :default) ⇒ Object

A helper to #file_set that allows you to specify ‘*.rb’ to get all files ending with .rb in your current path and deeper.

Parameters:

  • file_expression (String)

    The expression to match recursively.

  • label (Symbol) (defaults to: :default)

    The file set label to use.



216
217
218
219
220
# File 'lib/tailor/configuration.rb', line 216

def recursive_file_set(file_expression, label=:default)
  file_set("*/**/#{file_expression}", label) do |style|
    yield style if block_given?
  end
end