Module: PdfExtract::Resolve
- Defined in:
- lib/references/resolve.rb
Defined Under Namespace
Classes: FreeCite, Sigg, SimpleTextQuery
Constant Summary
collapse
- @@resolvers =
[Sigg]
Class Method Summary
collapse
Class Method Details
.add_resolver(resolver) ⇒ Object
99
100
101
102
103
|
# File 'lib/references/resolve.rb', line 99
def self.add_resolver resolver
unless @@resolvers.contains? resolver
@@resolvers << resolver
end
end
|
.find(ref) ⇒ Object
105
106
107
108
109
110
111
|
# File 'lib/references/resolve.rb', line 105
def self.find ref
ref = ref.dup
@@resolvers.each do |resolver|
ref.merge! resolver.find(ref[:content])
end
ref
end
|
.resolvers=(resolver) ⇒ Object
95
96
97
|
# File 'lib/references/resolve.rb', line 95
def self.resolvers= resolver
@@resolvers = resolver
end
|