Class: Styles::Properties::Width

Inherits:
Base
  • Object
show all
Defined in:
lib/styles/properties/width.rb

Instance Attribute Summary

Attributes inherited from Base

#name, #selector, #value

Instance Method Summary collapse

Methods inherited from Base

#colors, #initialize, multiple_names?, names, other_names, sub_engine, sub_engines, to_sym

Constructor Details

This class inherits a constructor from Styles::Properties::Base

Instance Method Details

#widthObject



6
7
8
# File 'lib/styles/properties/width.rb', line 6

def width
  value.to_i >= 0 ? value : 0
end