Module: NattyUI::Attributes::Height

Defined in:
lib/natty-ui/attributes.rb

Instance Attribute Summary collapse

Instance Attribute Details

#heightInteger, ...

Element height.

Returns:

  • (Integer)

    dedicated element height

  • (Range)

    height range: #min_height..#max_height

  • (nil)

    when unassigned



193
194
195
# File 'lib/natty-ui/attributes.rb', line 193

def height
  @height
end

#max_heightInteger?

Maximum element height.

Returns:

  • (Integer, nil)


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

def max_height = @height.is_a?(Range) ? @height.begin : @height

#min_heightInteger?

Minimum element height.

Returns:

  • (Integer, nil)


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

def min_height = @height.is_a?(Range) ? @height.begin : @height