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]



320
321
322
# File 'lib/natty-ui/attributes.rb', line 320

def margin
  @margin
end

#margin_bottomInteger

Element bottom margin.

Returns:

  • (Integer)


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

def margin_bottom = @margin[2]

#margin_leftInteger

Element left margin.

Returns:

  • (Integer)


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

def margin_left = @margin[3]

#margin_rightInteger

Element right margin.

Returns:

  • (Integer)


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

def margin_right = @margin[1]

#margin_topInteger

Element top margin.

Returns:

  • (Integer)


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

def margin_top = @margin[0]