Class: Monolens::Coerce::Array
- Inherits:
-
Object
- Object
- Monolens::Coerce::Array
show all
- Includes:
- Lens
- Defined in:
- lib/monolens/stdlib/coerce/array.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
|
# File 'lib/monolens/stdlib/coerce/array.rb', line 8
def call(arg, world = {})
Array(arg)
end
|