Class: Scorpion::Dependency::ClassDependency

Inherits:
Scorpion::Dependency show all
Defined in:
lib/scorpion/dependency/class_dependency.rb

Overview

Scorpion::Dependency for a Class contract

Instance Attribute Summary

Attributes inherited from Scorpion::Dependency

#contract

Instance Method Summary collapse

Methods inherited from Scorpion::Dependency

#==, define, #hash, #initialize, #inspect, #release, #replicate, #satisfies?

Constructor Details

This class inherits a constructor from Scorpion::Dependency

Instance Method Details

#fetch(hunt) ⇒ Object



8
9
10
# File 'lib/scorpion/dependency/class_dependency.rb', line 8

def fetch( hunt )
  hunt.scorpion.spawn hunt, contract, *hunt.arguments, &hunt.block
end