diff --git a/templates/new_gem/lib/fluent/plugin/parser.rb.erb b/templates/new_gem/lib/fluent/plugin/parser.rb.erb index 52c10285ab..6c506a0e42 100644 --- a/templates/new_gem/lib/fluent/plugin/parser.rb.erb +++ b/templates/new_gem/lib/fluent/plugin/parser.rb.erb @@ -6,10 +6,10 @@ module Fluent module Plugin class <%= class_name %> < Fluent::Plugin::Parser Fluent::Plugin.register_parser("<%= plugin_name %>", self) - end - def parse(text) - yield time, record + def parse(text) + yield time, record + end end end end