Module: NattyUI::Attributes::Width

Defined in:
lib/natty-ui/attributes.rb

Instance Attribute Summary collapse

Instance Attribute Details

#max_widthInteger?

Maximum element width.



164
# File 'lib/natty-ui/attributes.rb', line 164

def max_width = width.is_a?(Range) ? @width.end : @width

#min_widthInteger?

Minimum element width.



153
# File 'lib/natty-ui/attributes.rb', line 153

def min_width = width.is_a?(Range) ? @width.begin : @width

#widthInteger, ...

Element width.



142
143
144
# File 'lib/natty-ui/attributes.rb', line 142

def width
  @width
end