module Scooter::Sass
Constants
- VERSION
Public Class Methods
assets_path()
click to toggle source
# File lib/scooter-sass.rb, line 24 def assets_path defined?(::Sprockets) end
compas?()
click to toggle source
# File lib/scooter-sass.rb, line 28 def compas? defined?(::Compass) end
configure_sass()
click to toggle source
# File lib/scooter-sass.rb, line 36 def configure_sass require 'sass' ::Sass.load_paths << stylesheets_path end
gem_path()
click to toggle source
# File lib/scooter-sass.rb, line 16 def gem_path @gem_path ||= File.expand_path '..', File.dirname(__FILE__) end
load!()
click to toggle source
# File lib/scooter-sass.rb, line 6 def load! # register_compass_ext if compas? if rails? register_rails_engine elsif sprockets? register_sprockets end configure_sass end
rails?()
click to toggle source
# File lib/scooter-sass.rb, line 32 def rails? defined?(::Rails) end
register_rails_engine()
click to toggle source
# File lib/scooter-sass.rb, line 41 def register_rails_engine require 'scooter-sass/engine' end
register_sprockets()
click to toggle source
# File lib/scooter-sass.rb, line 45 def register_sprockets Sprockets.append_path(stylesheets_path) end
stylesheets_path()
click to toggle source
# File lib/scooter-sass.rb, line 20 def stylesheets_path File.join assets_path, 'stylesheets' end