lib/rbs/location_aux.rb in rbs-2.0.0 vs lib/rbs/location_aux.rb in rbs-2.1.0

- old
+ new

@@ -117,7 +117,19 @@ _required_keys.uniq.each(&block) else enum_for(:each_required_key) end end + + def key?(name) + optional_key?(name) || required_key?(name) + end + + def optional_key?(name) + _optional_keys.include?(name) + end + + def required_key?(name) + _required_keys.include?(name) + end end end