class RDF::N3::Algebra::Str::Format
The subject is a list, whose first member is a format string, and whose remaining members are arguments to the format string. The formating string is in the style of python’s % operator, very similar to C’s sprintf(). The object is calculated from the subject.
Constants
- NAME
- URI
Public Instance Methods
Source
# File lib/rdf/n3/algebra/str/format.rb, line 12 def resolve(list) format, *args = list.to_a.map(&:value) str = RDF::Literal(format % args) end
@param [RDF::N3::List] list @return [RDF::Term] @see RDF::N3::ListOperator#evaluate