class Ldpath::TypeTest
Attributes
type[R]
Public Class Methods
new(type)
click to toggle source
# File lib/ldpath/tests.rb, line 38 def initialize(type) @type = type end
Public Instance Methods
evaluate(program, uri, _context)
click to toggle source
# File lib/ldpath/tests.rb, line 42 def evaluate(program, uri, _context) return unless uri.literal? uri if uri.has_datatype? && uri.datatype == type end