Sha256: 62ae9922e3c28b55b7e8cda002caf55a1db8447612195fe5dfc32690a6a23040

Contents?: true

Size: 703 Bytes

Versions: 1

Compression:

Stored size: 703 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 Hashematics
  # ObjectInterface allows us to interact with external objects in a more standardized manner.
  # For example: configuration and objects passed into the module can be a little more liberal
  # in their specific types and key types.
  class ObjectInterface
    class << self
      def get(object, key)
        resolver.get(object, key)
      end

      private

      def resolver
        @resolver ||= Objectable.resolver(separator: nil)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hashematics-1.1.0 lib/hashematics/object_interface.rb