File: entypo-rails.rb

package info (click to toggle)
ruby-entypo-rails 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 844 kB
  • ctags: 38
  • sloc: ruby: 93; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 905 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'rails'
require 'entypo/version'

# The entypo-rails plugin provides access to the Entypo pictograms
# by Daniel Bruce http://www.entypo.com in the Rails asset pipeline.
module Entypo

  # String used as CSS Prefix before the icon name defined by entypo, this can
  # be set to avoid conflicts with other libraries like bootstrap.
  #
  # The default is "icon"
  @@css_prefix = "icon"
  mattr_accessor :css_prefix

  # Boolean which controls in which cases the route charmap route is drawn (or
  # not), when set to `true` the route is drawn.
  #
  # Defaults to `true` in Rails development env.
  @@charmap = Rails.env.development?
  mattr_accessor :charmap
  def self.charmap?; charmap end

  # Dummy engine so that lib/assets/stylesheets and vendor/assets/fonts
  # are picked up by Rails asset pipeline.
  class Engine < ::Rails::Engine
	config.root = '/usr/share/ruby-entypo-rails'
  end
end