Parent

Methods

Included Modules

Files

Less::Node::Quoted

“hello world“

Attributes

quotes[R]
content[R]

Public Class Methods

new(str) click to toggle source

Strip quotes if necessary, and save them in @quotes

     # File lib/less/engine/nodes/literal.rb, line 124
124:       def initialize str
125:         @quotes, @content = unless str.nil? or str.empty?
126:           str.match(/('|")(.*?)(\11))/).captures rescue [nil, str]
127:         else
128:           [nil, ""]
129:         end
130:         super @content
131:       end

Public Instance Methods

to_css() click to toggle source
     # File lib/less/engine/nodes/literal.rb, line 133
133:       def to_css
134:         "#@quotes#{@content}#@quotes"
135:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.