Module: RailsHeroicons

Defined in:
lib/rails_heroicons.rb,
lib/rails_heroicons/icons.rb,
lib/rails_heroicons/railtie.rb,
lib/rails_heroicons/version.rb

Defined Under Namespace

Modules: ViewHelpers Classes: IconNotFound, Icons, Railtie

Constant Summary collapse

VERSION =
'0.7.0'

Class Method Summary collapse

Class Method Details

.root(path = nil) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/rails_heroicons.rb', line 5

def self.root(path = nil)
  if path
    File.join(File.dirname(__dir__), path)
  else
    File.dirname(__dir__)
  end
end