module Bulma::Sass

Constants

VERSION

Public Class Methods

assets_path() click to toggle source
# File lib/bulma-sass.rb, line 24
def assets_path
  @assets_path ||= File.join(gem_path, 'app', 'assets')
end
configure_sass() click to toggle source
# File lib/bulma-sass.rb, line 32
def configure_sass
  require 'sass'
  ::Sass.load_paths << stylesheets_path
end
gem_path() click to toggle source

Paths

# File lib/bulma-sass.rb, line 16
def gem_path
  @gem_path ||= File.expand_path('..', File.dirname(__FILE__))
end
load!() click to toggle source
# File lib/bulma-sass.rb, line 6
def load!
  if defined?(::Rails)
    require "bulma/sass/engine"
  elsif defined?(::Sprockets)
    Sprockets.append_path(stylesheets_path)
  end
  configure_sass
end
stylesheets_path() click to toggle source
# File lib/bulma-sass.rb, line 28
def stylesheets_path
  File.join(assets_path, 'stylesheets')
end
templates_path() click to toggle source
# File lib/bulma-sass.rb, line 20
def templates_path
  File.join(gem_path, 'templates')
end