Sha256: eed9e910723191bcd926c87441c8f428fa0af8a7c9670fc7e671cb115c3e794f
Contents?: true
Size: 754 Bytes
Versions: 9
Compression:
Stored size: 754 Bytes
Contents
# encoding: utf-8 module Mongoid # :nodoc: module Relations #:nodoc: # Superclass for all objects that bind relations together. class Binding attr_reader :base, :target, :metadata OPTIONS = { :binding => true, :continue => false } # Create the new binding. # # @example Initialize a binding. # Binding.new(base, target, metadata) # # @param [ Document ] base The base of the binding. # @param [ Document, Array<Document> ] target The target of the binding. # @param [ Metadata ] metadata The relation's metadata. # # @since 2.0.0.rc.1 def initialize(base, target, metadata) @base, @target, @metadata = base, target, metadata end end end end
Version data entries
9 entries across 9 versions & 3 rubygems