Class: Coactive::Lookups::Name

Inherits:
Base
  • Object
show all
Defined in:
lib/coactive/lookups/name.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Coactive::Lookups::Base

Class Method Details

.callable?(coactant) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/coactive/lookups/name.rb', line 22

def callable?(coactant)
  coactant.is_a?(Symbol)
end

Instance Method Details

#callObject



6
7
8
9
# File 'lib/coactive/lookups/name.rb', line 6

def call
  load_files
  lookup
end