Sha256: 3f7228cc32c34c2d2bddbfff4d2bf37ad4288e643d05efb3c560bf2299970070
Contents?: true
Size: 316 Bytes
Versions: 2
Compression:
Stored size: 316 Bytes
Contents
require 'sparrow/strategies/json_format_strategies/json_format_strategy' module Sparrow module Strategies class ArrayStrategy < JsonFormatStrategy register_json_format def match?(input) input.is_a? Array end def convert(input) input.first end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cp-sparrow-0.0.12 | lib/sparrow/strategies/json_format_strategies/array_strategy.rb |
cp-sparrow-0.0.11 | lib/sparrow/strategies/json_format_strategies/array_strategy.rb |