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 Attribute Summary
Attributes included from Hanuman::StageInstanceMethods
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, 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(record) {|inspected| ... } ⇒ Object
Yields the input record(s) passed through Ruby's inspect
.
273 274 275 |
# File 'lib/wukong/widget/serializers.rb', line 273 def process(record) yield record.inspect end |