class Epuber::ThirdParty::Bower

Constants

JS_COMPONENTS

Public Class Methods

path_to_js(component) click to toggle source
# File lib/epuber/third_party/bower.rb, line 13
def path_to_js(component)
  path = JS_COMPONENTS[component]
  raise "Not found component #{component}" if path.nil?

  File.expand_path("bower/bower_components/#{path}", File.dirname(__FILE__))
end