lib/origen/parameters/set.rb in origen-0.54.6 vs lib/origen/parameters/set.rb in origen-0.55.0
- old
+ new
@@ -63,11 +63,11 @@
else
if args.length != 0
super
else
if !key?(method)
- super
+ nil
else
val = self[method]
if val.is_a?(Set)
val
else
@@ -84,24 +84,12 @@
end
end
end
end
- OVERRIDE_METHODS.each do |method|
+ (OVERRIDE_METHODS + OVERRIDE_HASH_METHODS).each do |method|
define_method method do
- if self[method]
- method_missing(method)
- end
- end
- end
-
- OVERRIDE_HASH_METHODS.each do |method|
- define_method method do
- if self[method]
- method_missing(method)
- else
- super
- end
+ method_missing(method)
end
end
def each
super do |key, val|