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]



335
336
337
# File 'lib/natty-ui/attributes.rb', line 335

def margin
  @margin
end

#margin_bottomInteger

Element bottom margin.

Returns:

  • (Integer)


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

def margin_bottom = @margin[2]

#margin_leftInteger

Element left margin.

Returns:

  • (Integer)


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

def margin_left = @margin[3]

#margin_rightInteger

Element right margin.

Returns:

  • (Integer)


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

def margin_right = @margin[1]

#margin_topInteger

Element top margin.

Returns:

  • (Integer)


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

def margin_top = @margin[0]