module DomLimpio

Constants

VERSION

Public Class Methods

assets_path() click to toggle source
# File lib/dom_limpio.rb, line 12
def assets_path
  @gem_path ||= File.expand_path "../assets", File.dirname(__FILE__)
end
load!() click to toggle source
# File lib/dom_limpio.rb, line 3
def load!
  if defined?(::Rails)
    register_rails_engine
  elsif defined?(::Sprockets)
    register_sprockets
  end
  configure_sass
end
stylesheets_path() click to toggle source
# File lib/dom_limpio.rb, line 16
def stylesheets_path
  File.join assets_path, 'stylesheets'
end

Private Class Methods

configure_sass() click to toggle source
# File lib/dom_limpio.rb, line 22
def configure_sass
  require 'sass'
  ::Sass.load_paths << stylesheets_path
end
register_rails_engine() click to toggle source
# File lib/dom_limpio.rb, line 27
def register_rails_engine
  require "dom_limpio/engine"
end
register_sprockets() click to toggle source
# File lib/dom_limpio.rb, line 31
def register_sprockets
  Sprockets.append_path(stylesheets_path)
end