Module: Leftovers::ProcessorBuilders::AddPrefix
- Defined in:
- lib/leftovers/processor_builders/add_prefix.rb
Class Method Summary collapse
Class Method Details
.build(argument, then_processor) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/leftovers/processor_builders/add_prefix.rb', line 7 def build(argument, then_processor) case argument when ::Hash then build_hash(argument, then_processor) when ::String then Processors::AddPrefix.new(argument, then_processor) # :nocov: else raise UnexpectedCase, "Unhandled value #{argument.inspect}" # :nocov: end end |