Method: Interview::Control#set_attributes
- Defined in:
- lib/interview/control.rb
#set_attributes(params = {}) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/interview/control.rb', line 12 def set_attributes(params={}) params.each do |key, value| key = "#{key}=".to_sym if respond_to?(key) # and not value.nil? send(key, value) end end end |