lib/i18n/tasks/data/tree/nodes.rb in i18n-tasks-0.9.12 vs lib/i18n/tasks/data/tree/nodes.rb in i18n-tasks-0.9.13
- old
+ new
@@ -1,8 +1,9 @@
# frozen_string_literal: true
require 'i18n/tasks/data/tree/traversal'
+require 'i18n/tasks/rainbow_utils'
module I18n::Tasks::Data::Tree
# A list of nodes
class Nodes
include Enumerable
include Traversal
@@ -45,10 +46,10 @@
def inspect
if present?
map(&:inspect) * "\n"
else
- Term::ANSIColor.dark '{∅}'
+ I18n::Tasks::RainbowUtils.faint_color('{∅}')
end
end
# methods below change state