module SassPaths::Gem

Private Instance Methods

gem_path(gem) click to toggle source
# File lib/sass_paths/gem.rb, line 10
def gem_path(gem)
  ::Gem::Specification.find_all_by_name(gem).first.full_gem_path
end
gem_sass_path(gem, directory) click to toggle source
# File lib/sass_paths/gem.rb, line 5
def gem_sass_path(gem, directory)
  require gem
  File.join(gem_path(gem), directory)
end