Class: Icomoon2Sass::Sass
- Inherits:
-
Object
- Object
- Icomoon2Sass::Sass
- Defined in:
- lib/icomoon2sass/sass.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#syntax ⇒ Object
readonly
Returns the value of attribute syntax.
Instance Method Summary collapse
-
#initialize(font, syntax = 'sass', compatible = false) ⇒ Sass
constructor
A new instance of Sass.
- #oocss ⇒ Object
Constructor Details
#initialize(font, syntax = 'sass', compatible = false) ⇒ Sass
Returns a new instance of Sass.
7 8 9 10 11 12 13 14 |
# File 'lib/icomoon2sass/sass.rb', line 7 def initialize(font, syntax = 'sass', compatible = false) @font = font @syntax = syntax @format = compatible ? 'list' : 'map' @code = sass_convert 'sass', syntax, template(@format) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/icomoon2sass/sass.rb', line 5 def code @code end |
#syntax ⇒ Object (readonly)
Returns the value of attribute syntax.
5 6 7 |
# File 'lib/icomoon2sass/sass.rb', line 5 def syntax @syntax end |
Instance Method Details
#oocss ⇒ Object
16 17 18 |
# File 'lib/icomoon2sass/sass.rb', line 16 def oocss sass_convert 'sass', syntax, template("oocss_#{@format}") end |