Skip to content

Commit 8db27b2

Browse files
committed
Add Variable#to_base as an alias of #to_s.
1 parent f11b7ec commit 8db27b2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/rdf/query/variable.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,5 +265,6 @@ def to_s
265265
prefix = distinguished? ? (existential? ? '$' : '?') : (existential? ? '$$' : '??')
266266
unbound? ? "#{prefix}#{name}" : "#{prefix}#{name}=#{value}"
267267
end
268+
alias_method :to_base, :to_s
268269
end # Variable
269270
end # RDF::Query

0 commit comments

Comments
 (0)