Class: RubySnooper::TraceWriter::Return
- Inherits:
-
Object
- Object
- RubySnooper::TraceWriter::Return
- Defined in:
- lib/ruby_snooper/trace_writer.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#method_id ⇒ Object
readonly
Returns the value of attribute method_id.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#return_value ⇒ Object
readonly
Returns the value of attribute return_value.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(method_id, event, number, time, code, return_value, file_path) ⇒ Return
constructor
A new instance of Return.
- #print ⇒ Object
Constructor Details
#initialize(method_id, event, number, time, code, return_value, file_path) ⇒ Return
104 105 106 107 108 109 110 111 112 |
# File 'lib/ruby_snooper/trace_writer.rb', line 104 def initialize(method_id, event, number, time, code, return_value, file_path) @method_id = method_id @event = event @number = number @time = time @code = code @return_value = return_value @file_path = file_path end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
102 103 104 |
# File 'lib/ruby_snooper/trace_writer.rb', line 102 def code @code end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
102 103 104 |
# File 'lib/ruby_snooper/trace_writer.rb', line 102 def event @event end |
#method_id ⇒ Object (readonly)
Returns the value of attribute method_id.
102 103 104 |
# File 'lib/ruby_snooper/trace_writer.rb', line 102 def method_id @method_id end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
102 103 104 |
# File 'lib/ruby_snooper/trace_writer.rb', line 102 def number @number end |
#return_value ⇒ Object (readonly)
Returns the value of attribute return_value.
102 103 104 |
# File 'lib/ruby_snooper/trace_writer.rb', line 102 def return_value @return_value end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
102 103 104 |
# File 'lib/ruby_snooper/trace_writer.rb', line 102 def time @time end |
Instance Method Details
#print ⇒ Object
114 115 116 117 |
# File 'lib/ruby_snooper/trace_writer.rb', line 114 def print STDERR.puts "#{Time.now.strftime("%T,%L")} #{@event} #{@number} #{@code}" STDERR.puts "Return value #{@return_value}" end |