Sha256: 3450d99e863a812892202abb848ed4fa6c40a590887a92683f2123103329922b

Contents?: true

Size: 452 Bytes

Versions: 4

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

#
# Copyright (c) 2019-present, Blue Marble Payroll, LLC
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

module Proforma
  module Compiling
    # This mix-in provides common methods for model compilation.
    module Compilable
      private

      def array(data)
        data.is_a?(Hash) ? [data] : Array(data)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
proforma-1.0.2 lib/proforma/compiling/compilable.rb
proforma-1.0.1 lib/proforma/compiling/compilable.rb
proforma-1.0.0 lib/proforma/compiling/compilable.rb
proforma-1.0.0.pre.alpha lib/proforma/compiling/compilable.rb