Class: Hardmock::ReplacedMethod
Overview
:nodoc:#
Direct Known Subclasses
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, method_name) ⇒ ReplacedMethod
constructor
A new instance of ReplacedMethod.
Constructor Details
#initialize(target, method_name) ⇒ ReplacedMethod
Returns a new instance of ReplacedMethod.
58 59 60 61 62 63 |
# File 'lib/hardmock/stubbing.rb', line 58 def initialize(target, method_name) @target = target @method_name = method_name Hardmock.track_replaced_method self end |
Instance Attribute Details
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
56 57 58 |
# File 'lib/hardmock/stubbing.rb', line 56 def method_name @method_name end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
56 57 58 |
# File 'lib/hardmock/stubbing.rb', line 56 def target @target end |