Class: Numeric

Inherits:
Object show all
Defined in:
opal/browser/css/unit.rb

Constant Summary collapse

Unit =
Browser::CSS::Unit

Instance Method Summary collapse

Instance Method Details

#%(other = nil) ⇒ Object



155
156
157
158
159
160
161
# File 'opal/browser/css/unit.rb', line 155

def %(other = nil)
  if other
    old_percent(other)
  else
    Unit.new(self, :%)
  end
end

#old_percentObject



153
# File 'opal/browser/css/unit.rb', line 153

alias old_percent %

#to_uObject



163
164
165
# File 'opal/browser/css/unit.rb', line 163

def to_u
  self
end