lib/ripl/rc/anchor.rb in ripl-rc-0.2.3 vs lib/ripl/rc/anchor.rb in ripl-rc-0.2.4
- old
+ new
@@ -29,10 +29,10 @@
end
# if the object is the same, then we're exiting from an anchor,
# so don't print anything.
def print_result result
- super unless result != nil &&
+ super unless !result.nil? &&
result.object_id == Ripl.config[:rc_anchor_last].object_id
end
module Imp
def short_inspect obj_or_binding