Class: Webgen::ContentProcessor::AccessHash

Inherits:
Object
  • Object
show all
Defined in:
lib/webgen/contentprocessor.rb

Overview

Helper class for accessing content processors in a Webgen::Context object.

Instance Method Summary collapse

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.

Returns:

  • (Boolean)


100
101
102
# File 'lib/webgen/contentprocessor.rb', line 100

def has_key?(name)
  Webgen::ContentProcessor.list.include?(name)
end