Class: FontawesomeSubsetter::Configuration
- Inherits:
-
Object
- Object
- FontawesomeSubsetter::Configuration
- Defined in:
- lib/fontawesome_subsetter.rb
Constant Summary collapse
- AVAILABLE_FEATURES =
Optional presentational FontAwesome SCSS partials. Core partials (functions, mixins, core, icons) are always included.
["sizing", "widths", "list", "bordered", "animated", "rotated-flipped", "stacked"].freeze
Instance Attribute Summary collapse
-
#build_dir ⇒ Object
Returns the value of attribute build_dir.
-
#features ⇒ Object
Returns the value of attribute features.
-
#fonts_dir ⇒ Object
Returns the value of attribute fonts_dir.
-
#icon_regex ⇒ Object
Returns the value of attribute icon_regex.
-
#meta_path ⇒ Object
Returns the value of attribute meta_path.
-
#scan_globs ⇒ Object
Returns the value of attribute scan_globs.
-
#scss_template ⇒ Object
Returns the value of attribute scss_template.
-
#styles ⇒ Object
Returns the value of attribute styles.
-
#variables ⇒ Object
Returns the value of attribute variables.
-
#watch_file_type_regex ⇒ Object
Returns the value of attribute watch_file_type_regex.
-
#watch_paths ⇒ Object
Returns the value of attribute watch_paths.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
32 33 34 35 36 37 38 |
# File 'lib/fontawesome_subsetter.rb', line 32 def initialize @scan_globs = ["app/views/**/*.slim", "app/helpers/**/*.rb"] @watch_file_type_regex = /\.(slim|rb)$/ @icon_regex = /icon\(\s*:(?<prefix>fas|far|fab|fad|fal|fat)\s*,\s*:(?<icon>[\w_\-]+)\b/ @variables = {} @features = :all end |
Instance Attribute Details
#build_dir ⇒ Object
Returns the value of attribute build_dir.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def build_dir @build_dir end |
#features ⇒ Object
Returns the value of attribute features.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def features @features end |
#fonts_dir ⇒ Object
Returns the value of attribute fonts_dir.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def fonts_dir @fonts_dir end |
#icon_regex ⇒ Object
Returns the value of attribute icon_regex.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def icon_regex @icon_regex end |
#meta_path ⇒ Object
Returns the value of attribute meta_path.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def @meta_path end |
#scan_globs ⇒ Object
Returns the value of attribute scan_globs.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def scan_globs @scan_globs end |
#scss_template ⇒ Object
Returns the value of attribute scss_template.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def scss_template @scss_template end |
#styles ⇒ Object
Returns the value of attribute styles.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def styles @styles end |
#variables ⇒ Object
Returns the value of attribute variables.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def variables @variables end |
#watch_file_type_regex ⇒ Object
Returns the value of attribute watch_file_type_regex.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def watch_file_type_regex @watch_file_type_regex end |
#watch_paths ⇒ Object
Returns the value of attribute watch_paths.
24 25 26 |
# File 'lib/fontawesome_subsetter.rb', line 24 def watch_paths @watch_paths end |