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



242
243
244
# File 'lib/natty-ui/attributes.rb', line 242

def padding
  @padding
end

#padding_bottomInteger

Text bottom padding.

Returns:

  • (Integer)


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

def padding_bottom = @padding[2]

#padding_leftInteger

Text left padding.

Returns:

  • (Integer)


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

def padding_left = @padding[3]

#padding_rightInteger

Text right padding.

Returns:

  • (Integer)


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

def padding_right = @padding[1]

#padding_topInteger

Text top padding.

Returns:

  • (Integer)


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

def padding_top = @padding[0]