Parent

Included Modules

Files

Less::Node::Number

6 10px 125%

Attributes

unit[RW]

Public Class Methods

new(value, unit = nil) click to toggle source
    # File lib/less/engine/nodes/literal.rb, line 89
89:       def initialize value, unit = nil
90:         super value.to_f
91:         @unit = (unit.nil? || unit.empty?) ? nil : unit
92:       end

Public Instance Methods

dup() click to toggle source
     # File lib/less/engine/nodes/literal.rb, line 98
 98:       def dup
 99:         self
100:       end
inspect() click to toggle source
     # File lib/less/engine/nodes/literal.rb, line 106
106:       def inspect
107:         to_s
108:       end
to_css() click to toggle source
     # File lib/less/engine/nodes/literal.rb, line 110
110:       def to_css
111:         "#{(self % 1).zero?? "#{self.to_i}#@unit" : self}"
112:       end
to_ruby() click to toggle source
     # File lib/less/engine/nodes/literal.rb, line 102
102:       def to_ruby
103:         self.to_f
104:       end
to_s() click to toggle source
    # File lib/less/engine/nodes/literal.rb, line 94
94:       def to_s
95:         "#{super}#@unit"
96:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.