Method: Pugin.load!
- Defined in:
- lib/pugin.rb
.load! ⇒ Object
Inspired by bootsrap-sass
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/pugin.rb', line 16 def load! if rails? register_rails_files elsif sinatra? register_sinatra_files elsif sprockets? register_sprockets end # Try and load HAML, raising an error if we are not able to begin require 'haml' rescue LoadError => e raise(LoadError, "pugin requires the 'haml' gem. Please check it is in your Gemfile - #{e.message}") end end |