    # File lib/chef/knife/core/text_formatter.rb, line 27
            def initialize(data, ui)
              @ui = ui
              @data = if data.respond_to?(:display_hash)
                data.display_hash
              elsif data.kind_of?(Array)
                data
              elsif data.respond_to?(:to_hash)
                data.to_hash
              else
                data
              end
            end