module Hashery::Association::Kernel
Object
extensions.
Public Instance Methods
>>(to)
click to toggle source
Define an association for self
.
to - The value of the association.
Returns [Association].
# File lib/hashery/association.rb, line 168 def >>(to) Association.new(self, to) end
associations()
click to toggle source
List of associations for this object.
Returns an ‘Array` of `Associations`.
# File lib/hashery/association.rb, line 177 def associations Association.reference[self] end