Class: Coactive::Lookups::Object

Inherits:
Base
  • Object
show all
Defined in:
lib/coactive/lookups/object.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)


39
40
41
# File 'lib/coactive/lookups/object.rb', line 39

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

Instance Method Details

#callObject



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

def call
  lookup(@coactant)
end