Class: Monolens::Array::Join
- Inherits:
-
Object
- Object
- Monolens::Array::Join
show all
- Includes:
- Lens
- Defined in:
- lib/monolens/stdlib/array/join.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
10
11
12
13
14
|
# File 'lib/monolens/stdlib/array/join.rb', line 10
def call(arg, world = {})
is_array!(arg, world)
arg.join(option(:separator, ' '))
end
|