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.
335 336 337 |
# File 'lib/natty-ui/attributes.rb', line 335 def margin @margin end |
#margin_bottom ⇒ Integer
Element bottom margin.
368 |
# File 'lib/natty-ui/attributes.rb', line 368 def margin_bottom = @margin[2] |
#margin_left ⇒ Integer
Element left margin.
379 |
# File 'lib/natty-ui/attributes.rb', line 379 def margin_left = @margin[3] |
#margin_right ⇒ Integer
Element right margin.
357 |
# File 'lib/natty-ui/attributes.rb', line 357 def margin_right = @margin[1] |
#margin_top ⇒ Integer
Element top margin.
346 |
# File 'lib/natty-ui/attributes.rb', line 346 def margin_top = @margin[0] |