Class: Spy::Blueprint
- Inherits:
-
Object
- Object
- Spy::Blueprint
- Defined in:
- lib/spy/blueprint.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #_caller ⇒ Object
- #caller ⇒ Object
-
#initialize(target, msg, type) ⇒ Blueprint
constructor
A new instance of Blueprint.
- #to_s ⇒ Object
Constructor Details
#initialize(target, msg, type) ⇒ Blueprint
Returns a new instance of Blueprint.
5 6 7 8 9 10 |
# File 'lib/spy/blueprint.rb', line 5 def initialize(target, msg, type) @target = target @msg = msg @type = type @caller = _caller end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
3 4 5 |
# File 'lib/spy/blueprint.rb', line 3 def msg @msg end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
3 4 5 |
# File 'lib/spy/blueprint.rb', line 3 def target @target end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/spy/blueprint.rb', line 3 def type @type end |
Instance Method Details
#_caller ⇒ Object
12 |
# File 'lib/spy/blueprint.rb', line 12 alias :_caller :caller |
#caller ⇒ Object
14 15 16 |
# File 'lib/spy/blueprint.rb', line 14 def caller @caller end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/spy/blueprint.rb', line 18 def to_s [@target.object_id, @msg, @type].join("|") end |