Class: Wukong::Processor::FromDelimited
- Inherits:
-
Serializer
- Object
- Hanuman::Stage
- Wukong::Processor
- Serializer
- Wukong::Processor::FromDelimited
- Defined in:
- lib/wukong/widget/serializers.rb
Overview
A widget for deserializing inputs from a delimited format.
Constant Summary
Constants inherited from Wukong::Processor
Instance Attribute Summary
Attributes included from Hanuman::StageInstanceMethods
Instance Method Summary collapse
-
#process(delimited) {|obj| ... } ⇒ Object
Yields the input
record
deserialized from a delimited format.
Methods inherited from Serializer
Methods inherited from Wukong::Processor
configure, description, #finalize, #perform_action, #receive_action, #setup, #stop
Methods included from Logging
Methods inherited from Hanuman::Stage
Methods included from Hanuman::StageClassMethods
#builder, #label, #register, #set_builder
Methods included from Hanuman::StageInstanceMethods
#add_link, #linkable_name, #root
Instance Method Details
#process(delimited) {|obj| ... } ⇒ Object
Yields the input record
deserialized from a delimited format.
248 249 250 251 252 253 254 255 256 |
# File 'lib/wukong/widget/serializers.rb', line 248 def process(delimited) begin record = delimited.split(delimiter) rescue => e # FIXME -- should we log here or what? return end yield record end |