Sha256: e5f9e64122aec52e6cb8456dc5069fd6436a50827b4770d912e6fe2970e9daf5

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

require 'oulu-rails/version'
require 'sass'
require 'compass'

module OuluRails
  class Engine < ::Rails::Engine
    initializer 'oulu_rails', after: 'compass.initialize_rails' do
      config.compass.require 'rgbapng'
      config.compass.require 'modular-scale'
    end
  end
end

module AddFunctions
  def remove_selector(string)
    assert_type string, :String
    return Sass::Script::String.new(string.value.gsub(/(\.|#)/, ""))
  end
end

module Sass::Script::Functions
  include AddFunctions
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oulu-rails-0.5.25 lib/oulu-rails.rb