Class: Monolens::Array::Compact
- Inherits:
-
Object
- Object
- Monolens::Array::Compact
- Includes:
- Lens
- Defined in:
- lib/monolens/array/compact.rb
Instance Attribute Summary
Attributes included from Lens
Instance Method Summary collapse
Methods included from Lens
Methods included from Lens::FetchSupport
Instance Method Details
#call(arg, world = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/monolens/array/compact.rb', line 6 def call(arg, world = {}) is_array!(arg, world) arg.compact end |