347
348
349
350
351
352
353
354
355
356
357
358
359
|
# File 'lib/rdf/query/solution.rb', line 347
def method_missing(name, *args, &block)
if args.empty? && @bindings.key?(name.to_sym)
if INSTANCE_METHODS.include?(name)
warn "[DEPRECATION] RDF::Query::Solution##{name} is an overridden instance method.\n" +
"Its use as a solution accessor is deprecated and will be removed in a future version.\n" +
"Use #[] for safe access.\n" +
"Called from #{Gem.location_of_caller.join(':')}"
end
@bindings[name.to_sym]
else
super end
end
|