Module: NattyUI::Attributes::Padding

Included in:
Table::Cell::Attributes
Defined in:
lib/natty-ui/attributes.rb

Instance Attribute Summary collapse

Instance Attribute Details

#paddingArray<Integer>

Text padding within the element.

Returns:

  • (Array<Integer>)

    top, right, bottom, left



227
228
229
# File 'lib/natty-ui/attributes.rb', line 227

def padding
  @padding
end

#padding_bottomInteger

Text bottom padding.

Returns:

  • (Integer)


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

def padding_bottom = @padding[2]

#padding_leftInteger

Text left padding.

Returns:

  • (Integer)


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

def padding_left = @padding[3]

#padding_rightInteger

Text right padding.

Returns:

  • (Integer)


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

def padding_right = @padding[1]

#padding_topInteger

Text top padding.

Returns:

  • (Integer)


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

def padding_top = @padding[0]