Method: Fluent::Compat::TextParser#parse
- Defined in:
- lib/fluent/compat/parser.rb
#parse(text, &block) ⇒ Object
74 75 76 77 78 79 80 81 82 |
# File 'lib/fluent/compat/parser.rb', line 74 def parse(text, &block) if block @parser.parse(text, &block) else @parser.parse(text) { |time, record| return time, record } end end |