lib/cli/ui/frame/frame_stack.rb in cli-ui-1.4.0 vs lib/cli/ui/frame/frame_stack.rb in cli-ui-1.5.0
- old
+ new
@@ -44,14 +44,14 @@
# If the given item is not a +StackItem+, raises an +ArgumentError+
#
def push(item = nil, color: nil, style: nil)
unless item.nil?
unless item.is_a?(StackItem)
- raise ArgumentError, "item must be a StackItem"
+ raise ArgumentError, 'item must be a StackItem'
end
unless color.nil? && style.nil?
- raise ArgumentError, "Must give one of item or color: and style:"
+ raise ArgumentError, 'Must give one of item or color: and style:'
end
end
item ||= StackItem.new(color, style)