d598e4fd93
Enables frozen for the following: * lib/*.rb * lib/banzai/**/*.rb * lib/bitbucket/**/*.rb * lib/constraints/**/*.rb * lib/container_registry/**/*.rb * lib/declarative_policy/**/*.rb Partially addresses #47424.
16 lines
367 B
Ruby
16 lines
367 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Banzai
|
|
module ReferenceParser
|
|
# Returns the reference parser class for the given type
|
|
#
|
|
# Example:
|
|
#
|
|
# Banzai::ReferenceParser['issue']
|
|
#
|
|
# This would return the `Banzai::ReferenceParser::IssueParser` class.
|
|
def self.[](name)
|
|
const_get("#{name.to_s.camelize}Parser")
|
|
end
|
|
end
|
|
end
|