Class: Wukong::Processor::ToInspect
- Inherits:
-
Serializer
- Object
- Hanuman::Stage
- Wukong::Processor
- Serializer
- Wukong::Processor::ToInspect
- Defined in:
- lib/wukong/widget/serializers.rb
Overview
A widget for serializing inputs to Ruby's inspect format.
Constant Summary
Constants inherited from Wukong::Processor
Instance Method Summary collapse
-
#process(record) {|inspected| ... } ⇒ Object
Yields the input record(s) passed through Ruby's
inspect.
Methods inherited from Serializer
Methods inherited from Wukong::Processor
configure, consumes, description, #expected_record_type, #expected_serialization, #finalize, #perform_action, produces, #receive_action, #setup, #stop, valid_serializer?, validate_and_set_serialization
Methods included from Logging
Methods included from Hanuman::StageClassMethods
#builder, #label, #register, #set_builder
Instance Method Details
#process(record) {|inspected| ... } ⇒ Object
Yields the input record(s) passed through Ruby's inspect.
275 276 277 |
# File 'lib/wukong/widget/serializers.rb', line 275 def process(record) yield record.inspect end |