Method: Correlate::ClassMethods#correlation_for
- Defined in:
- lib/correlate.rb
#correlation_for(object) ⇒ Correlate::Correlation?
Determine the matching correlation for the provided object.
91 92 93 |
# File 'lib/correlate.rb', line 91 def correlation_for( object ) self.correlations.detect { |c| c.matches?( object ) } end |