module Bake::Format
Constants
- REGISTRY
Public Class Methods
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.23.1/lib/bake/format.rb, line 10 def self.[](name) unless name =~ /\A[a-z_]+\z/ raise ArgumentError.new("Invalid format name: #{name}") end begin require_relative "format/#{name}" rescue LoadError raise ArgumentError.new("Unknown format: #{name}") end return REGISTRY[name.to_sym] end