Module: Leftovers::ProcessorBuilders::KeywordArgument

Defined in:
lib/leftovers/processor_builders/keyword_argument.rb

Class Method Summary collapse

Class Method Details

.build(pattern, then_processor) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/leftovers/processor_builders/keyword_argument.rb', line 6

def self.build(pattern, then_processor)
  Processors::KeywordArgument.new(
    MatcherBuilders::NodePairKey.build(
      MatcherBuilders::NodeName.build(pattern)
    ),
    then_processor
  )
end