Method: Jaspion::Kilza::Class#push
- Defined in:
- lib/jaspion/kilza/class.rb
#push(property) ⇒ Object
Adds a new property
28 29 30 31 32 33 34 35 36 |
# File 'lib/jaspion/kilza/class.rb', line 28 def push(property) index = @properties.index(property) unless index.nil? current = @properties[index] @properties[index] = update(current, property) else @properties.push(property) end end |