Class: Retl::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/retl/handlers/handler.rb

Direct Known Subclasses

ForkHandler, PathHandler, StepHandler

Instance Method Summary collapse

Constructor Details

#initializeHandler

Returns a new instance of Handler.



3
4
5
# File 'lib/retl/handlers/handler.rb', line 3

def initialize
  @output = []
end

Instance Method Details

#outputObject



7
8
9
# File 'lib/retl/handlers/handler.rb', line 7

def output
  @output.slice!(0, @output.count)
end

#push_in(data, context) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/retl/handlers/handler.rb', line 11

def push_in(data, context)
  raise NotImplementedError, "Handlers much implement the #push_in(data, context) method"
end