Module: Hashery::Association::Kernel

Included in:
Object
Defined in:
lib/hashery/association.rb

Overview

Object extensions.

Instance Method Summary (collapse)

Instance Method Details

- (Object) >>(to)

Define an association with self.



113
114
115
# File 'lib/hashery/association.rb', line 113

def >>(to)
  Association.new(self, to)
end

- (Object) associations



117
118
119
# File 'lib/hashery/association.rb', line 117

def associations
  Association.reference[self]
end