Class: Videojuicer::SDKLiquidHelper::Filters::AssetBlock
- Inherits:
-
Liquid::Block
- Object
- Liquid::Block
- Videojuicer::SDKLiquidHelper::Filters::AssetBlock
- Defined in:
- lib/videojuicer/shared/liquid_helper.rb
Constant Summary collapse
- @@asset_ids =
{}
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tag_name, args, tokens) ⇒ AssetBlock
constructor
A new instance of AssetBlock.
- #render ⇒ Object
- #unknown_tag(tag_name, args, tokens) ⇒ Object
Constructor Details
#initialize(tag_name, args, tokens) ⇒ AssetBlock
Returns a new instance of AssetBlock.
17 18 19 20 21 |
# File 'lib/videojuicer/shared/liquid_helper.rb', line 17 def initialize tag_name, args, tokens @@asset_ids[tag_name] ||= [] @@asset_ids[tag_name] << tokens.to_s.gsub(/\{% id ([0-9]+){1,10} %\}.*/, "\\1").strip super end |