0
0
Fork 0

Using double splat operator (#5859)

This commit is contained in:
Yamagishi Kazutoshi 2017-12-06 19:41:57 +09:00 committed by Eugen Rochko
parent 42bcbd36b7
commit b21db9bbde
25 changed files with 32 additions and 32 deletions

View file

@ -319,7 +319,7 @@ class OStatus::AtomSerializer
private
def append_element(parent, name, content = nil, attributes = {})
def append_element(parent, name, content = nil, **attributes)
element = Ox::Element.new(name)
attributes.each { |k, v| element[k] = sanitize_str(v) }
element << sanitize_str(content) unless content.nil?