Class: RR::DoubleDefinitions::Strategies::Strategy
- Inherits:
-
Object
- Object
- RR::DoubleDefinitions::Strategies::Strategy
- Includes:
- Space::Reader
- Defined in:
- lib/rr/double_definitions/strategies/strategy.rb
Direct Known Subclasses
DoubleInjection::DoubleInjectionStrategy, Implementation::ImplementationStrategy, Verification::VerificationStrategy
Instance Attribute Summary (collapse)
-
- (Object) args
readonly
Returns the value of attribute args.
-
- (Object) definition
readonly
Returns the value of attribute definition.
-
- (Object) double_definition_create
readonly
Returns the value of attribute double_definition_create.
-
- (Object) handler
readonly
Returns the value of attribute handler.
-
- (Object) method_name
readonly
Returns the value of attribute method_name.
Instance Method Summary (collapse)
- - (Object) call(definition, method_name, args, handler)
-
- (Strategy) initialize(double_definition_create)
constructor
A new instance of Strategy.
- - (Object) verify_subject(subject)
Methods included from Space::Reader
Constructor Details
- (Strategy) initialize(double_definition_create)
A new instance of Strategy
8 9 10 |
# File 'lib/rr/double_definitions/strategies/strategy.rb', line 8 def initialize(double_definition_create) @double_definition_create = double_definition_create end |
Instance Attribute Details
- (Object) args (readonly)
Returns the value of attribute args
5 6 7 |
# File 'lib/rr/double_definitions/strategies/strategy.rb', line 5 def args @args end |
- (Object) definition (readonly)
Returns the value of attribute definition
5 6 7 |
# File 'lib/rr/double_definitions/strategies/strategy.rb', line 5 def definition @definition end |
- (Object) double_definition_create (readonly)
Returns the value of attribute double_definition_create
5 6 7 |
# File 'lib/rr/double_definitions/strategies/strategy.rb', line 5 def double_definition_create @double_definition_create end |
- (Object) handler (readonly)
Returns the value of attribute handler
5 6 7 |
# File 'lib/rr/double_definitions/strategies/strategy.rb', line 5 def handler @handler end |
- (Object) method_name (readonly)
Returns the value of attribute method_name
5 6 7 |
# File 'lib/rr/double_definitions/strategies/strategy.rb', line 5 def method_name @method_name end |
Instance Method Details
- (Object) call(definition, method_name, args, handler)
12 13 14 15 |
# File 'lib/rr/double_definitions/strategies/strategy.rb', line 12 def call(definition, method_name, args, handler) @definition, @method_name, @args, @handler = definition, method_name, args, handler do_call end |
- (Object) verify_subject(subject)
17 18 |
# File 'lib/rr/double_definitions/strategies/strategy.rb', line 17 def verify_subject(subject) end |