Module: NattyUI::Attributes::Margin
- Defined in:
- lib/natty-ui/attributes.rb
Instance Attribute Summary collapse
-
#margin ⇒ Array<Integer>
Element margin.
-
#margin_bottom ⇒ Integer
Element bottom margin.
-
#margin_left ⇒ Integer
Element left margin.
-
#margin_right ⇒ Integer
Element right margin.
-
#margin_top ⇒ Integer
Element top margin.
Instance Attribute Details
#margin ⇒ Array<Integer>
Element margin.
333 334 335 |
# File 'lib/natty-ui/attributes.rb', line 333 def margin @margin end |
#margin_bottom ⇒ Integer
Element bottom margin.
366 |
# File 'lib/natty-ui/attributes.rb', line 366 def margin_bottom = @margin[2] |
#margin_left ⇒ Integer
Element left margin.
377 |
# File 'lib/natty-ui/attributes.rb', line 377 def margin_left = @margin[3] |
#margin_right ⇒ Integer
Element right margin.
355 |
# File 'lib/natty-ui/attributes.rb', line 355 def margin_right = @margin[1] |
#margin_top ⇒ Integer
Element top margin.
344 |
# File 'lib/natty-ui/attributes.rb', line 344 def margin_top = @margin[0] |