Class: Rails::Webpack::Config

Inherits:
Settingslogic
  • Object
show all
Defined in:
lib/rails/webpack/config.rb

Instance Method Summary collapse

Instance Method Details

#bower_configured?(key) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/rails/webpack/config.rb', line 10

def bower_configured?(key)
  keys.include?('bower') && bower.keys.include?(key.to_s)
end

#npm_configured?(key) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/rails/webpack/config.rb', line 6

def npm_configured?(key)
  keys.include?('npm') && npm.keys.include?(key.to_s)
end