Method: JsonDoc::Document#cpProp
- Defined in:
- lib/jsondoc/document.rb
#cpProp(yKeySrc = nil, yKeyDest = nil) ⇒ Object Also known as: cpAttr
134 135 136 137 138 |
# File 'lib/jsondoc/document.rb', line 134 def cpProp(yKeySrc = nil, yKeyDest = nil) yKeySrc = yKeySrc.to_sym if yKeySrc.is_a?(String) yKeyDest = yKeyDest.to_sym if yKeyDest.is_a?(String) self.setAttr(yKeyDest, self.getAttr(yKeySrc)) end |