lib/attractor/value.rb in attractor-2.1.0 vs lib/attractor/value.rb in attractor-2.2.0

- old
+ new

@@ -13,9 +13,13 @@ @complexity = complexity @details = details @history = history end + def current_commit + history&.first&.first + end + def to_s format("%-64s%8.1f%8i", @file_path, @complexity, @churn) end def to_h