Sha256: 81b36e1a01d58a0509a51d075ca7494caaf51313ef13893cabb4673c77c0b682

Contents?: true

Size: 672 Bytes

Versions: 12

Compression:

Stored size: 672 Bytes

Contents

module Videojuicer
  module SDKLiquidHelper
    module Filters
      
      class AssetBlock < ::Liquid::Block
        
        @@asset_ids = {}
        
        def self.reset!
          @@asset_ids = {}
        end
        
        def self.asset_ids
          @@asset_ids.deep_symbolize
        end
        
        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
        
        def render; nil; end;
        
        def unknown_tag tag_name, args, tokens; nil; end;
        
      end#end class
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vj-sdk-0.7.3 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.2 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.1 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.0 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.6.9 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.6.8 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.6.7 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.6.5 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.6.4 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.6.3 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.6.1 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.6.0 lib/videojuicer/shared/liquid_helper.rb