@@ -70,7 +70,7 @@ class Writer < RDF::Writer
70
70
# @yield [writer] `self`
71
71
# @yieldparam [RDF::Writer] writer
72
72
# @yieldreturn [void] ignored
73
- def initialize ( output = $stdout, options = { } , &block )
73
+ def initialize ( output = $stdout, ** options , &block )
74
74
@graph_name = nil
75
75
@nesting = 0
76
76
@@ -104,7 +104,7 @@ def initialize(output = $stdout, options = {}, &block)
104
104
self . extend ( @implementation )
105
105
106
106
@encoding = ( options [ :encoding ] || 'utf-8' ) . to_s
107
- initialize_xml ( options )
107
+ initialize_xml ( ** options )
108
108
109
109
super do
110
110
if block_given?
@@ -193,11 +193,11 @@ def write_triple(subject, predicate, object)
193
193
# @param [RDF::Value] object
194
194
# @param [Hash{Symbol => Object}] options
195
195
# @return [Element]
196
- def format_triple ( subject , predicate , object , options = { } )
196
+ def format_triple ( subject , predicate , object , ** options )
197
197
create_element ( :triple ) do |triple |
198
- triple << format_term ( subject , options )
199
- triple << format_term ( predicate , options )
200
- triple << format_term ( object , options )
198
+ triple << format_term ( subject , ** options )
199
+ triple << format_term ( predicate , ** options )
200
+ triple << format_term ( object , ** options )
201
201
end
202
202
end
203
203
@@ -207,7 +207,7 @@ def format_triple(subject, predicate, object, options = {})
207
207
# @param [RDF::Node] value
208
208
# @param [Hash{Symbol => Object}] options
209
209
# @return [Element]
210
- def format_node ( value , options = { } )
210
+ def format_node ( value , ** options )
211
211
create_element ( :id , value . id . to_s )
212
212
end
213
213
@@ -217,7 +217,7 @@ def format_node(value, options = {})
217
217
# @param [RDF::URI] value
218
218
# @param [Hash{Symbol => Object}] options
219
219
# @return [Element]
220
- def format_uri ( value , options = { } )
220
+ def format_uri ( value , ** options )
221
221
create_element ( :uri , value . to_s )
222
222
end
223
223
@@ -227,7 +227,7 @@ def format_uri(value, options = {})
227
227
# @param [RDF::Literal, String, #to_s] value
228
228
# @param [Hash{Symbol => Object}] options
229
229
# @return [Element]
230
- def format_literal ( value , options = { } )
230
+ def format_literal ( value , ** options )
231
231
case
232
232
when value . has_datatype?
233
233
create_element ( :typedLiteral , value . value . to_s , 'datatype' => value . datatype . to_s )
0 commit comments