lib/ld/patch/parser.rb
##
# Return variable allocated to an ID.
# If no ID is provided, a new variable
# is allocated. Otherwise, any previous assignment will be used.
# @return [RDF::Query::Variable]
Return variable allocated to an ID.
If no ID is provided, a new variable
is allocated. Otherwise, any previous assignment will be used.
Return variable allocated to an ID . If no ID is provided a new variable is allocated . Otherwise any previous assignment will be used .
def variable(id, distinguished = true)
      @vars[id] ||= begin
        v = RDF::Query::Variable.new(id)
        v.distinguished = distinguished
        v
      end
    end
def variable ( id , distinguished = true ) @vars [ id ] ||= begin v = RDF :: Query :: Variable . new ( id ) v . distinguished = distinguished v end end
Return variable allocated to an ID.
Return variable allocated to an ID .
None
RDF::Query::Variable
id
<not_specific>
distinguished
<not_specific>