Class: Retl::Handler
- Inherits:
-
Object
- Object
- Retl::Handler
- Defined in:
- lib/retl/handlers/handler.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ Handler
constructor
A new instance of Handler.
- #output ⇒ Object
- #push_in(data, context) ⇒ Object
Constructor Details
#initialize ⇒ Handler
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 |