class Kustomize::Json6902Patch::RemoveOp
Public Class Methods
create(patch_spec)
click to toggle source
# File lib/kustomize/json_6902_patch/remove_op.rb, line 4 def self.create(patch_spec) new( path: patch_spec['path'] ) end
new(path:)
click to toggle source
# File lib/kustomize/json_6902_patch/remove_op.rb, line 10 def initialize(path:) @lens = parse_lens(path) end
Public Instance Methods
apply(rc0)
click to toggle source
# File lib/kustomize/json_6902_patch/remove_op.rb, line 14 def apply(rc0) _, rc1 = @lens.pop_in(rc0) rc1 end