Class: Icomoon2Sass::Sass

Inherits:
Object
  • Object
show all
Defined in:
lib/icomoon2sass/sass.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/icomoon2sass/sass.rb', line 5

def code
  @code
end

#syntaxObject (readonly)

Returns the value of attribute syntax.



5
6
7
# File 'lib/icomoon2sass/sass.rb', line 5

def syntax
  @syntax
end

Instance Method Details

#oocssObject



16
17
18
# File 'lib/icomoon2sass/sass.rb', line 16

def oocss
  sass_convert 'sass', syntax, template("oocss_#{@format}")
end