Class: QiitaExport::Fetcher::Base
- Inherits:
-
Object
- Object
- QiitaExport::Fetcher::Base
show all
- Extended by:
- Forwardable
- Defined in:
- lib/qiita-export/fetcher/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
14
15
16
|
# File 'lib/qiita-export/fetcher/base.rb', line 14
def initialize
@config = ::QiitaExport::Config
end
|
Instance Method Details
#exclude?(title) ⇒ Boolean
22
23
24
25
26
27
|
# File 'lib/qiita-export/fetcher/base.rb', line 22
def exclude?(title)
if !@config.exclude_pattern.nil? && /#{@config.exclude_pattern}/ =~ title
return true
end
false
end
|
#find_articles ⇒ Object
18
19
20
|
# File 'lib/qiita-export/fetcher/base.rb', line 18
def find_articles
raise NotImplementedError.new("You must implement #{self.class}##{__method__}")
end
|