Class: Less::Node::FontFamily
- Inherits:
-
Object
- Object
- Less::Node::FontFamily
- Includes:
- Literal
- Defined in:
- lib/less/engine/nodes/literal.rb
Instance Attribute Summary
Attributes included from Entity
Instance Method Summary collapse
-
#initialize(family = []) ⇒ FontFamily
constructor
A new instance of FontFamily.
- #to_css ⇒ Object
Methods included from Literal
Methods included from Entity
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_css ⇒ Object
149 150 151 |
# File 'lib/less/engine/nodes/literal.rb', line 149 def to_css @family.map(&:to_css) * ', ' end |