Method: AdLint::Cc1::ArrayValue#overwrite!
- Defined in:
- lib/adlint/cc1/value.rb
#overwrite!(val, tag) ⇒ Object
930 931 932 933 934 935 936 937 938 939 |
# File 'lib/adlint/cc1/value.rb', line 930 def overwrite!(val, tag) case sval = val.to_single_value when ArrayValue @values.zip(sval.values).each do |lhs, rhs| rhs && lhs.overwrite!(rhs, tag) end else raise TypeError, "cannot overwrite array with non-array." end end |