Class: Trifle::Docs::Harvester::File::Sieve

Inherits:
Sieve
  • Object
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

Constructor Details

This class inherits a constructor from Trifle::Docs::Harvester::Sieve

Instance Method Details

#match?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/trifle/docs/harvester/file.rb', line 8

def match?
  true
end

#to_urlObject



12
13
14
# File 'lib/trifle/docs/harvester/file.rb', line 12

def to_url
  file.gsub(%r{^#{path}/}, '')
end