Sha256: fafcaf61b8f2ef44ed35afa3e02b421befae42be39fb92609e66372984f57cf2
Contents?: true
Size: 650 Bytes
Versions: 26
Compression:
Stored size: 650 Bytes
Contents
module Scorpion # Adds a #scorpion method to an object. module Method # @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. def scorpion( scope = nil ) if scope scope.with_scorpion( scorpion ) else @scorpion end end private def scorpion=( value ) @scorpion = value end end end
Version data entries
26 entries across 26 versions & 1 rubygems