Class: SimpleEmailPreview::ViewHooks::Hooks
- Inherits:
-
Hash
- Object
- Hash
- SimpleEmailPreview::ViewHooks::Hooks
- Defined in:
- lib/simple_email_preview/view_hooks.rb
Instance Method Summary collapse
-
#initialize ⇒ Hooks
constructor
A new instance of Hooks.
Constructor Details
#initialize ⇒ Hooks
Returns a new instance of Hooks.
80 81 82 83 84 85 86 87 88 |
# File 'lib/simple_email_preview/view_hooks.rb', line 80 def initialize super Hash.new { |h, id| validate_id! id h[id] = Hash.new { |hh, pos| validate_pos! pos hh[pos] = [] } } end |