Class: Less::Node::FontFamily

Inherits:
Object
  • Object
show all
Includes:
Literal
Defined in:
lib/less/engine/nodes/literal.rb

Instance Attribute Summary

Attributes included from Entity

#parent

Instance Method Summary collapse

Methods included from Literal

#unit

Methods included from Entity

#inspect, #path, #root, #to_s

Constructor Details

#initialize(family = []) ⇒ FontFamily

Returns a new instance of FontFamily.



145
146
147
# File 'lib/less/engine/nodes/literal.rb', line 145

def initialize family = []
  @family = family
end

Instance Method Details

#to_cssObject



149
150
151
# File 'lib/less/engine/nodes/literal.rb', line 149

def to_css
  @family.map(&:to_css) * ', '
end