Class: Gm::Notepad::InputProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/gm/notepad/input_processor.rb

Overview

Responsible for processing the given input into a renderable state

Instance Method Summary collapse

Instance Method Details

#process(input:) ⇒ Object



8
9
10
11
12
13
# File 'lib/gm/notepad/input_processor.rb', line 8

def process(input:)
  processor = build_for(input: input)
  processor.each_line_with_parameters do |*args|
    yield(*args)
  end
end