class Scorpion::Dependency::ArgumentDependency
{Dependency} for an captured argument. @see {Scorpion#argument}.
Attributes
argument[R]
Public Class Methods
new( argument )
click to toggle source
# File lib/scorpion/dependency/argument_dependency.rb, line 11 def initialize( argument ) @argument = argument end
Public Instance Methods
fetch( *args )
click to toggle source
# File lib/scorpion/dependency/argument_dependency.rb, line 15 def fetch( *args ) argument end
satisfies?( contract )
click to toggle source
# File lib/scorpion/dependency/argument_dependency.rb, line 19 def satisfies?( contract ) contract === argument end