Class: Webhookdb::Liquid::Partial

Inherits:
Liquid::Include
  • Object
show all
Defined in:
lib/webhookdb/liquid/partial.rb

Instance Method Summary collapse

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, options)
  name = "'partials/#{Regexp.last_match(1)}'" if name =~ /['"]([a-z0-9_]+)['"]/
  super(tag_name, name, options)
end