lib/kitchen/element_enumerator_base.rb
# Removes enumerated elements from their parent and places them on the specified clipboard
#
# @param to [Symbol, String, Clipboard, nil] the name of the clipboard (or a Clipboard
#   object) to cut to. String values are converted to symbols. If not provided, the
#   elements are placed on a new clipboard.
# @return [Clipboard] the clipboard
#
Removes enumerated elements from their parent and places them on the specified clipboard
Removes enumerated elements from their parent and places them on the specified clipboard
def cut(to: nil)
      to ||= Clipboard.new
      each do |element|
        element.cut(to: to)
      end
      to
    end
def cut ( to : nil ) to ||= Clipboard . new each do | element | element . cut ( to : to ) end to end
Removes enumerated elements from their parent and places them on the specified clipboard
Removes enumerated elements from their parent and places them on the specified clipboard
None
Clipboard
to
the name of the clipboard (or a Clipboard object) to cut to. String values are converted to symbols. If not provided, the elements are placed on a new clipboard.
the name of the clipboard ( or a Clipboard object ) to cut to . String values are converted to symbols . If not provided the elements are placed on a new clipboard .