Module: FeedFilter
- Defined in:
- lib/feedfilter/ads.rb,
lib/feedfilter/version.rb,
lib/feedfilter/includes.rb
Defined Under Namespace
Modules: AdsFilter
Classes: AdsFilters, IncludeFilters
Constant Summary
collapse
- MAJOR =
1
- MINOR =
1
- PATCH =
1
- VERSION =
[MAJOR,MINOR,PATCH].join('.')
Class Method Summary
collapse
Class Method Details
.banner ⇒ Object
14
15
16
|
# File 'lib/feedfilter/version.rb', line 14
def self.banner
"feedfilter/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end
|
.root ⇒ Object
18
19
20
|
# File 'lib/feedfilter/version.rb', line 18
def self.root
"#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
end
|
.strip_ads(text) ⇒ Object
49
50
51
52
|
# File 'lib/feedfilter/ads.rb', line 49
def self.strip_ads( text )
@@ads_filters ||= FeedFilter::AdsFilters.new
@@ads_filters.filter( text )
end
|
.version ⇒ Object
10
11
12
|
# File 'lib/feedfilter/version.rb', line 10
def self.version
VERSION
end
|