lib/dap/exception_path_segment.rb in ruby-dap-0.1.2 vs lib/dap/exception_path_segment.rb in ruby-dap-0.1.3
- old
+ new
@@ -1,7 +1,11 @@
+# An ExceptionPathSegment represents a segment in a path that is used to match
+# leafs or nodes in a tree of exceptions. If a segment consists of more than one
+# name, it matches the names provided if ‘negate’ is false or missing or it
+# matches anything except the names provided if ‘negate’ is true.
class DAP::ExceptionPathSegment < DAP::Base
# If false or missing this segment matches the names provided, otherwise it matches anything except the names provided.
- property :negate, required: false
+ property :negate, required: false, as: 'boolean'
# Depending on the value of 'negate' the names that should match or not match.
- property :names
+ property :names, as: 'string[]'
end