Sha256: 70fdd2dc7e911ef079feca5236180b43bed442c9ef20f63bdb60b95ae465e63f

Contents?: true

Size: 194 Bytes

Versions: 3

Compression:

Stored size: 194 Bytes

Contents

module ThemesForRails

  module Interpolation

    def interpolate(pattern, name = nil)
      pattern.gsub(":root", ThemesForRails.config.base_dir).gsub(":name", name.to_s)
    end

  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
themes_for_rails-0.5.1 lib/themes_for_rails/interpolation.rb
themes_for_rails-0.5.0 lib/themes_for_rails/interpolation.rb
themes_for_rails-0.5.0.pre lib/themes_for_rails/interpolation.rb