Class: FontawesomeSubsetter::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_dirObject

Returns the value of attribute build_dir.



24
25
26
# File 'lib/fontawesome_subsetter.rb', line 24

def build_dir
  @build_dir
end

#featuresObject

Returns the value of attribute features.



24
25
26
# File 'lib/fontawesome_subsetter.rb', line 24

def features
  @features
end

#fonts_dirObject

Returns the value of attribute fonts_dir.



24
25
26
# File 'lib/fontawesome_subsetter.rb', line 24

def fonts_dir
  @fonts_dir
end

#icon_regexObject

Returns the value of attribute icon_regex.



24
25
26
# File 'lib/fontawesome_subsetter.rb', line 24

def icon_regex
  @icon_regex
end

#meta_pathObject

Returns the value of attribute meta_path.



24
25
26
# File 'lib/fontawesome_subsetter.rb', line 24

def meta_path
  @meta_path
end

#scan_globsObject

Returns the value of attribute scan_globs.



24
25
26
# File 'lib/fontawesome_subsetter.rb', line 24

def scan_globs
  @scan_globs
end

#scss_templateObject

Returns the value of attribute scss_template.



24
25
26
# File 'lib/fontawesome_subsetter.rb', line 24

def scss_template
  @scss_template
end

#stylesObject

Returns the value of attribute styles.



24
25
26
# File 'lib/fontawesome_subsetter.rb', line 24

def styles
  @styles
end

#variablesObject

Returns the value of attribute variables.



24
25
26
# File 'lib/fontawesome_subsetter.rb', line 24

def variables
  @variables
end

#watch_file_type_regexObject

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_pathsObject

Returns the value of attribute watch_paths.



24
25
26
# File 'lib/fontawesome_subsetter.rb', line 24

def watch_paths
  @watch_paths
end