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