Method: N4j::Attributes#attribute=
- Defined in:
- lib/n4j/attributes.rb
#attribute=(key, value) ⇒ Object
26 27 28 29 30 |
# File 'lib/n4j/attributes.rb', line 26 def attribute=(key,value) # puts "Setting attribute #{key}!" send("#{key}_will_change!") unless value == send(key) instance_variable_set("@#{key}", value) end |