Sha256: fec3b475ec6181fa97bf4737a7bbcc6e7586e450b34fc909dd71c9dd0599a5e2

Contents?: true

Size: 320 Bytes

Versions: 25

Compression:

Stored size: 320 Bytes

Contents

module Gumdrop

  module Utils

    def self.content_hash(base_path)
      Hash.new do |hash, key| 
        templates= Dir["#{base_path}#{key}*"]
        if templates.length > 0
          Content.new( templates[0] )
        else
          puts "NOT FOUND: #{key}"
          nil
        end
      end
    end

  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
gumdrop-0.5.2 lib/gumdrop/utils.rb
gumdrop-0.5.1 lib/gumdrop/utils.rb
gumdrop-0.5 lib/gumdrop/utils.rb
gumdrop-0.4.0 lib/gumdrop/utils.rb
gumdrop-0.3.10 lib/gumdrop/utils.rb
gumdrop-0.3.9 lib/gumdrop/utils.rb
gumdrop-0.3.8 lib/gumdrop/utils.rb
gumdrop-0.3.7 lib/gumdrop/utils.rb
gumdrop-0.3.6 lib/gumdrop/utils.rb
gumdrop-0.3.5 lib/gumdrop/utils.rb
gumdrop-0.3.4 lib/gumdrop/utils.rb
gumdrop-0.3.3 lib/gumdrop/utils.rb
gumdrop-0.3.2 lib/gumdrop/utils.rb
gumdrop-0.3 lib/gumdrop/utils.rb
gumdrop-0.2.16 lib/gumdrop/utils.rb
gumdrop-0.2.15 lib/gumdrop/utils.rb
gumdrop-0.2.14 lib/gumdrop/utils.rb
gumdrop-0.2.13 lib/gumdrop/utils.rb
gumdrop-0.2.12 lib/gumdrop/utils.rb
gumdrop-0.2.11 lib/gumdrop/utils.rb