lib/git_store/tree.rb
# Delete a value on specified path.
#
# Use an argument list or a string with slashes.
Delete a value on specified path.
Use an argument list or a string with slashes.
Delete a value on specified path . Use an argument list or a string with slashes .
def delete(*args)
      args = args.first.to_s.split('/') if args.size == 1
      tree = args[0..-2].to_a.inject(self) do |tree, key|
        tree.get(key) or return
      end
      tree.remove(args.last)
    end
def delete ( * args ) args = args . first . to_s . split ( '/' ) if args . size == 1 tree = args [ 0 .. - 2 ] . to_a . inject ( self ) do | tree , key | tree . get ( key ) or return end tree . remove ( args . last ) end
Delete a value on specified path.
Delete a value on specified path .
args