Class: ParameterSubstitution::Formatters::Manager

Inherits:
Object
  • Object
show all
Defined in:
lib/parameter_substitution/formatters/manager.rb

Class Method Summary collapse

Class Method Details

.all_formatsObject



11
12
13
# File 'lib/parameter_substitution/formatters/manager.rb', line 11

def all_formats
  default_formats.merge(custom_formatters_if_any)
end

.default_formatsObject



15
16
17
# File 'lib/parameter_substitution/formatters/manager.rb', line 15

def default_formats
  @default_formats ||= formatter_class_hash(__FILE__, ["ParameterSubstitution", "Formatters"])
end

.find(key) ⇒ Object



7
8
9
# File 'lib/parameter_substitution/formatters/manager.rb', line 7

def find(key)
  all_formats[key.to_s]
end