Module: NattyUI::Attributes::Height
- Defined in:
- lib/natty-ui/attributes.rb
Instance Attribute Summary collapse
-
#height ⇒ Integer, ...
Element height.
-
#max_height ⇒ Integer?
Maximum element height.
-
#min_height ⇒ Integer?
Minimum element height.
Instance Attribute Details
#height ⇒ Integer, ...
Element height.
175 176 177 |
# File 'lib/natty-ui/attributes.rb', line 175 def height @height end |
#max_height ⇒ Integer?
Maximum element height.
199 200 201 |
# File 'lib/natty-ui/attributes.rb', line 199 def max_height @height.is_a?(Range) ? @height.begin : @height end |
#min_height ⇒ Integer?
Minimum element height.
186 187 188 |
# File 'lib/natty-ui/attributes.rb', line 186 def min_height @height.is_a?(Range) ? @height.begin : @height end |