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



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

def height
  @height
end

#max_heightInteger?

Maximum element height.

Returns:

  • (Integer, nil)


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

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

#min_heightInteger?

Minimum element height.

Returns:

  • (Integer, nil)


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

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