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::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
.
105 106 107 |
# File 'lib/webgen/contentprocessor.rb', line 105 def [](name) Webgen::ContentProcessor.for_name(name) end |
#has_key?(name) ⇒ Boolean
Check if a content processor called name
exists.
100 101 102 |
# File 'lib/webgen/contentprocessor.rb', line 100 def has_key?(name) Webgen::ContentProcessor.list.include?(name) end |