Class: Retl::Handler
- Inherits:
-
Object
show all
- Defined in:
- lib/retl/handlers/handler.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of Handler.
3
4
5
|
# File 'lib/retl/handlers/handler.rb', line 3
def initialize
@output = []
end
|
Instance Method Details
#output ⇒ Object
7
8
9
|
# File 'lib/retl/handlers/handler.rb', line 7
def output
@output.slice!(0, @output.count)
end
|
#push_in(data, context) ⇒ Object
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
|