Class: Wukong::Processor::Compact

Inherits:
Filter show all
Defined in:
lib/wukong/widget/filters.rb

Overview

Select a record only if it is non-nil.

See Also:

Constant Summary

Constants inherited from Wukong::Processor

SerializerError

Instance Attribute Summary

Attributes included from Hanuman::StageInstanceMethods

#graph

Instance Method Summary collapse

Methods inherited from Filter

#process, #reject?

Methods inherited from Wukong::Processor

configure, description, #finalize, #perform_action, #process, #receive_action, #setup, #stop

Methods included from Logging

included

Methods inherited from Hanuman::Stage

#clone

Methods included from Hanuman::StageClassMethods

#builder, #label, #register, #set_builder

Methods included from Hanuman::StageInstanceMethods

#add_link, #linkable_name, #root

Instance Method Details

#select?(record) ⇒ true, false

Select a record only if it is non-nil.

Parameters:

  • record (Object)

Returns:

  • (true, false)


445
446
447
# File 'lib/wukong/widget/filters.rb', line 445

def select?(record)
  ! record.nil?
end