diff --git a/lib/skyfall/operation.rb b/lib/skyfall/operation.rb index fb7e768..dd987fa 100644 --- a/lib/skyfall/operation.rb +++ b/lib/skyfall/operation.rb @@ -57,5 +57,14 @@ def type else :unknown end end + + def inspectable_variables + instance_variables - [:@message] + end + + def inspect + vars = inspectable_variables.map { |v| "#{v}=#{instance_variable_get(v).inspect}" }.join(", ") + "#<#{self.class}:0x#{object_id} #{vars}>" + end end end