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



175
176
177
# File 'lib/natty-ui/attributes.rb', line 175

def height
  @height
end

#max_heightInteger?

Maximum element height.

Returns:

  • (Integer, nil)


199
200
201
# File 'lib/natty-ui/attributes.rb', line 199

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

#min_heightInteger?

Minimum element height.

Returns:

  • (Integer, nil)


186
187
188
# File 'lib/natty-ui/attributes.rb', line 186

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