lib/oas_objs/helpers.rb in zero-rails_openapi-1.2.0 vs lib/oas_objs/helpers.rb in zero-rails_openapi-1.3.0

- old
+ new

@@ -8,14 +8,16 @@ def value_present proc { |_, v| truly_present? v } end + # assign.to def assign(value) @assign = value.is_a?(Symbol) ? send("_#{value}") : value self end + # reduceee.then_merge! => for Hash def reduceee(*values) @assign = values.compact.reduce({ }, :merge).keep_if &value_present self end