Module: NattyUI::Attributes::Padding

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



240
241
242
# File 'lib/natty-ui/attributes.rb', line 240

def padding
  @padding
end

#padding_bottomInteger

Text bottom padding.

Returns:

  • (Integer)


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

def padding_bottom = @padding[2]

#padding_leftInteger

Text left padding.

Returns:

  • (Integer)


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

def padding_left = @padding[3]

#padding_rightInteger

Text right padding.

Returns:

  • (Integer)


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

def padding_right = @padding[1]

#padding_topInteger

Text top padding.

Returns:

  • (Integer)


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

def padding_top = @padding[0]