Class: MailyHerald::Context::Drop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- MailyHerald::Context::Drop
- Defined in:
- lib/maily_herald/context.rb
Overview
Context Attributes drop definition for Liquid
Instance Method Summary collapse
- #has_key?(name) ⇒ Boolean
-
#initialize(attrs) ⇒ Drop
constructor
A new instance of Drop.
- #invoke_drop(name) ⇒ Object (also: #[])
Constructor Details
#initialize(attrs) ⇒ Drop
Returns a new instance of Drop.
20 21 22 |
# File 'lib/maily_herald/context.rb', line 20 def initialize attrs @attrs = attrs end |
Instance Method Details
#has_key?(name) ⇒ Boolean
24 25 26 27 28 |
# File 'lib/maily_herald/context.rb', line 24 def has_key?(name) name = name.to_s @attrs.has_key? name end |