module Scorpion::Method
Adds a scorpion
method to an object.
Public Instance Methods
scorpion( scope = nil )
click to toggle source
@overload scorpion
@return [Scorpion] the object's scorpion used to hunt down dependencies.
@overload scorpion( scope )
Stings the given `scope` with the current scorpion. @param [#with_scorpion] scope an object that responds to #with_scorpion that receives the current scorpion. @return [scope] stung object.
# File lib/scorpion/method.rb, line 11 def scorpion( scope = nil ) if scope scope.with_scorpion( scorpion ) else @scorpion end end
scorpion_hunt()
click to toggle source
@!attribute @return [Hunt] the scorpion hunt that captured the object.
# File lib/scorpion/method.rb, line 25 def scorpion_hunt @scorpion_hunt end
Private Instance Methods
scorpion=( value )
click to toggle source
# File lib/scorpion/method.rb, line 19 def scorpion=( value ) @scorpion = value end
scorpion_hunt=( hunt )
click to toggle source
# File lib/scorpion/method.rb, line 29 def scorpion_hunt=( hunt ) @scorpion_hunt = hunt end