Sha256: dedc4b952b556bf4e3c99b46c16e3adc512c9de70fa3aa3f432604728d3bb383
Contents?: true
Size: 407 Bytes
Versions: 3
Compression:
Stored size: 407 Bytes
Contents
module Lita module Extensions class KeywordArguments def self.call(payload) spec = payload[:route].extensions[:kwargs] if spec response = payload[:response] kwargs = Parser.new(spec, response.message.args).parse response.extensions[:kwargs] = kwargs end end end Lita.register_hook(:trigger_route, KeywordArguments) end end
Version data entries
3 entries across 3 versions & 1 rubygems