Class: Functional::Compact
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Functional::Base
Instance Method Details
#call(*a) ⇒ Object
72 73 74 |
# File 'lib/functional.rb', line 72 def call *a @next.call *a unless a.empty? || [nil] == a end |