Sha256: cf49f41f570d234364ece62245ada0403b9bb9016880036bc1bda31cc7d0438b

Contents?: true

Size: 871 Bytes

Versions: 12

Compression:

Stored size: 871 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
      
      class SmilVideoFragment < ::Liquid::Block
        
      end
      
      class IdFragment < ::Liquid::Tag
      end
      
      class DeliveryFragment < ::Liquid::Tag
      end
      
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vj-sdk-0.8.2 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.8.0.1 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.14 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.13 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.11 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.10 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.9 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.8 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.7 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.6 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.5 lib/videojuicer/shared/liquid_helper.rb
vj-sdk-0.7.4 lib/videojuicer/shared/liquid_helper.rb