module Nomen::Formatters
Public Class Methods
lookup(type)
click to toggle source
# File lib/nomen/formatters.rb, line 7 def self.lookup(type) begin const_get(type.to_s.split('_').map(&:capitalize).join) rescue NameError raise UnknownFormatterError, "unknown formatter '#{type}'" end end