Sha256: 94576e413b6d37032dd4abae8ed5d0d087936b63cdf7dcc724a72e7034511e63
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
# frozen_string_literal: true module FontAwesomeVersionHelper # Determines if the App uses Font Awesome releases 3.x or 4.x # @return [TrueClass, FalseClass] def font_awesome_four? Bundler.environment.specs['font-awesome-rails'].first.version >= Gem::Version.new('4') end # Selects one of two HTML element classes depending upon the release of Font Awesome used by the App # @param if3 [String] the Font Awesome 3 HTML class # @param if4 [String] the Font Awesome 4 HTML class # @return [String] the Font Awesome HTML class def fa3or4(if3, if4) font_awesome_four? ? if4 : if3 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
browse-everything-0.16.0 | app/helpers/font_awesome_version_helper.rb |