Module: NattyUI::Attributes::Margin

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

Instance Attribute Summary collapse

Instance Attribute Details

#marginArray<Integer>

Element margin.

Returns:

  • (Array<Integer>)

    [top, right, bottom, left]



333
334
335
# File 'lib/natty-ui/attributes.rb', line 333

def margin
  @margin
end

#margin_bottomInteger

Element bottom margin.

Returns:

  • (Integer)


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

def margin_bottom = @margin[2]

#margin_leftInteger

Element left margin.

Returns:

  • (Integer)


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

def margin_left = @margin[3]

#margin_rightInteger

Element right margin.

Returns:

  • (Integer)


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

def margin_right = @margin[1]

#margin_topInteger

Element top margin.

Returns:

  • (Integer)


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

def margin_top = @margin[0]