Method: ContentFS::Renderers.register

Defined in:
lib/contentfs/renderers.rb

.register(name, format:, constant:, path:) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/contentfs/renderers.rb', line 16

def register(name, format:, constant:, path:)
  (renderers[format.to_sym] ||= []) << {
    name: name.to_sym,
    constant: constant.to_s,
    path: Pathname.new(path)
  }
end