Method: Courgette::NameResolution#resolve

Defined in:
lib/courgette/name_resolution.rb

#resolve(reference) ⇒ Object



7
8
9
10
11
# File 'lib/courgette/name_resolution.rb', line 7

def resolve reference
  matches(reference).max do |x, y|
    x.length <=> y.length
  end
end