Completed
Push — master ( fc6b68...5ba60e )
by Marcelo
44s
created

ArrayOf.coerce()   A

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
1
module Koine
2
  module Attributes
3
    module Adapter
4
      class ArrayOf < Base
5
        def initialize(adapter)
6
          @adapter = adapter
7
        end
8
9
        def coerce(collectionOfValues)
10
          secure do
11
            collectionOfValues.map { |value| @adapter.coerce(value) }
12
          end
13
        end
14
      end
15
    end
16
  end
17
end
18