lib/clomp/result.rb in clomp-0.0.6 vs lib/clomp/result.rb in clomp-0.0.7
- old
+ new
@@ -25,9 +25,17 @@
def failure?
@state.(self[:tracks]) === false
end
+ def state_statement
+ success? ? 'Successful' : 'Failure'
+ end
+
+ def to_s
+ "#{self.class.name} > #{state_statement}: #{executed_tracks}"
+ end
+
def method_missing(method, *args)
if @operation.respond_to?(method)
@operation.send(method, *args)
else
super
\ No newline at end of file