Class: Webhookdb::Liquid::Partial
- Inherits:
-
Liquid::Include
- Object
- Liquid::Include
- Webhookdb::Liquid::Partial
- Defined in:
- lib/webhookdb/liquid/partial.rb
Instance Method Summary collapse
-
#initialize(tag_name, name, options) ⇒ Partial
constructor
A new instance of Partial.
Constructor Details
#initialize(tag_name, name, options) ⇒ Partial
Returns a new instance of Partial.
7 8 9 10 |
# File 'lib/webhookdb/liquid/partial.rb', line 7 def initialize(tag_name, name, ) name = "'partials/#{Regexp.last_match(1)}'" if name =~ /['"]([a-z0-9_]+)['"]/ super(tag_name, name, ) end |