Class: Trifle::Docs::Harvester::File::Sieve
- Inherits:
-
Sieve
- Object
- Sieve
- Trifle::Docs::Harvester::File::Sieve
show all
- Defined in:
- lib/trifle/docs/harvester/file.rb
Instance Attribute Summary
Attributes inherited from Sieve
#file, #path
Instance Method Summary
collapse
Methods inherited from Sieve
#initialize
Instance Method Details
#match? ⇒ Boolean
8
9
10
|
# File 'lib/trifle/docs/harvester/file.rb', line 8
def match?
true
end
|
#to_url ⇒ Object
12
13
14
|
# File 'lib/trifle/docs/harvester/file.rb', line 12
def to_url
file.gsub(%r{^#{path}/}, '')
end
|