Class: Icomoon2Sass::Archive
- Inherits:
-
Object
- Object
- Icomoon2Sass::Archive
- Defined in:
- lib/icomoon2sass/archive.rb
Constant Summary collapse
- EXTRACTABLE_PATTERN =
/(fonts\/.*|selection\.js|style\.css)/
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
Instance Method Summary collapse
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
2 3 4 |
# File 'lib/icomoon2sass/archive.rb', line 2 def files @files end |
Instance Method Details
#font_files ⇒ Object
6 7 8 |
# File 'lib/icomoon2sass/archive.rb', line 6 def font_files @_font_files ||= @files.reject {|key| !key.match(/fonts/) } end |
#metadata_file ⇒ Object
10 11 12 |
# File 'lib/icomoon2sass/archive.rb', line 10 def @_metadata_file ||= @files.reject {|key| !key.match(/\.json/) }.values.first end |