lib/archive.rb in format_parser-2.0.0 vs lib/archive.rb in format_parser-2.1.0
- old
+ new
@@ -1,11 +1,9 @@
-require 'ks'
-
module FormatParser
class Archive
include FormatParser::AttributesJSON
- class Entry < Ks.strict(:type, :size, :filename)
+ class Entry < Struct.new(:type, :size, :filename, keyword_init: true)
def to_json(*a)
to_h.to_json(*a)
end
end