Using double splat operator (#5859)
This commit is contained in:
parent
42bcbd36b7
commit
b21db9bbde
25 changed files with 32 additions and 32 deletions
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class OStatus::Activity::Base
|
||||
def initialize(xml, account = nil, options = {})
|
||||
def initialize(xml, account = nil, **options)
|
||||
@xml = xml
|
||||
@account = account
|
||||
@options = options
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue