lib/net/dns/rr/null.rb in net-dns-0.9.0 vs lib/net/dns/rr/null.rb in net-dns-0.20.0

- old
+ new

@@ -21,14 +21,12 @@ def get_inspect @null.to_s end def subclass_new_from_hash(args) - if args.key? :null - @null = args[:null] - else - raise ArgumentError, ":null field is mandatory but missing" - end + raise ArgumentError, ":null field is mandatory but missing" unless args.key? :null + + @null = args[:null] end def subclass_new_from_string(str) @null = str.strip end