Class: Jcsv::RBCollector
Overview
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
Attributes included from NextFilter
Instance Method Summary collapse
- #execute(value, context) ⇒ Object
-
#initialize ⇒ RBCollector
constructor
A new instance of RBCollector.
Methods included from NextFilter
Constructor Details
#initialize ⇒ RBCollector
Returns a new instance of RBCollector.
194 195 196 197 |
# File 'lib/filters.rb', line 194 def initialize @collection = [] super() end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
192 193 194 |
# File 'lib/filters.rb', line 192 def collection @collection end |
Instance Method Details
#execute(value, context) ⇒ Object
199 200 201 202 203 |
# File 'lib/filters.rb', line 199 def execute(value, context) validateInputNotNull(value, context) @collection << value exec_next(value, context) end |