Sha256: 40b0234a913b8176651fd47320385cfb6066d3bc3b9147560b1bea6ac901726f

Contents?: true

Size: 359 Bytes

Versions: 16

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module Trailblazer
  class Finder
    # Helper module
    module Utils
      module Array
        module_function

        def convert_hashes_in_array_to_struct(hash)
          result = []
          hash.each do |h|
            result << (OpenStruct.new h)
          end
          result
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
trailblazer-finder-0.200.0 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.100.0 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.92.0 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.91.0 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.90.0 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.80.1 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.70.0 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.50.0 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.10.3 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.10.2 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.10.1 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.10.0 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.3.0 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.2.7 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.2.6 lib/trailblazer/finder/utils/array.rb
trailblazer-finder-0.2.5 lib/trailblazer/finder/utils/array.rb