class SimpleParser
Constants
- START_REG
Public Class Methods
handle(paragraph_lines)
click to toggle source
# File lib/utils/kube_config_parser/explainer.rb, line 63 def self.handle(paragraph_lines) line = paragraph_lines.shift content = line.match(START_REG)[1] value = ExpressionPipe.handle(content) element = '{{' + content + '}}' start_index = line.index(element) end_index = start_index + element.size - 1 line[start_index..end_index] = value.to_s paragraph_lines.insert(0, line) end