Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb')
-rw-r--r--vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb b/vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb
deleted file mode 100644
index c075aa0d878..00000000000
--- a/vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-# frozen_string_literal: true
-
-module IpynbDiff
- # Helper functions
- module SymbolizedMarkdownHelper
-
- def _(symbol = nil, content = '')
- { symbol: symbol, content: content }
- end
-
- def symbolize_array(symbol, content, &block)
- if content.is_a?(Array)
- content.map.with_index { |l, idx| _(symbol / idx, block.call(l)) }
- else
- content.split("\n").map { |c| _(symbol, c) }
- end
- end
- end
-
- # Simple wrapper for a string
- class JsonSymbol < String
- def /(other)
- JsonSymbol.new((other.is_a?(Array) ? [self, *other] : [self, other]).join('.'))
- end
- end
-end