Class: Ldpath::Selector

Inherits:
Object
  • Object
show all
Defined in:
lib/ldpath/selectors.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(program, uris, context) ⇒ Object



3
4
5
6
7
8
# File 'lib/ldpath/selectors.rb', line 3

def evaluate(program, uris, context)
  Array(uris).map do |uri|
    loading program, uri, context
    evaluate_one uri, context
  end.flatten.compact
end

#loading(program, uri, context) ⇒ Object



10
11
12
# File 'lib/ldpath/selectors.rb', line 10

def loading(program, uri, context)
  program.loading uri, context
end