Module: UCD::HasAttributes

Included in:
Formatter::Base, Interface::Base, Node::Base
Defined in:
lib/ucd/has_attributes.rb

Instance Method Summary collapse

Instance Method Details

#update_attributes(attributes = {}) ⇒ Object



4
5
6
# File 'lib/ucd/has_attributes.rb', line 4

def update_attributes(attributes={})
  attributes.to_h.each { |name, value| send("#{name}=", value) }
end