Sha256: 342ddb5ba9083a95e26778a76c0ba16d55e4f7a9aa74ceb417f0641616588e40

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

module Assetify


  class DSL

    class << self
      def group name, &block
        ns = name
        def st.method_missing method, name, url
          Asset.new method.to_sym, ns + name, url
        end
        st.instance_exec(&block)
      end

      def method_missing(method, name, url, ver=nil, params={})
        Asset.new method.to_sym, name, url, ver
      end
    end
  end


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
assetify-0.0.2 lib/assetify/dsl.rb
assetify-0.0.1 lib/assetify/dsl.rb