Class: Webgen::ContentProcessor::AccessHash
- Inherits:
-
Object
- Object
- Webgen::ContentProcessor::AccessHash
- Defined in:
- lib/webgen/contentprocessor.rb
Overview
Helper class for accessing content processors in a Webgen::ContentProcessor::Context object.
Instance Method Summary collapse
-
#[](name) ⇒ Object
Return (and proboably initialize) the content processor called
name
. -
#has_key?(name) ⇒ Boolean
Check if a content processor called
name
exists.
Instance Method Details
#[](name) ⇒ Object
Return (and proboably initialize) the content processor called name
.
92 93 94 |
# File 'lib/webgen/contentprocessor.rb', line 92 def [](name) Webgen::ContentProcessor.for_name(name) end |
#has_key?(name) ⇒ Boolean
Check if a content processor called name
exists.
87 88 89 |
# File 'lib/webgen/contentprocessor.rb', line 87 def has_key?(name) Webgen::ContentProcessor.list.include?(name) end |