Module: Alf::Renderer::Text::Utils

Included in:
Alf::Renderer::Text, Cell, Row, Table
Defined in:
lib/alf/renderer/text.rb

Instance Method Summary collapse

Instance Method Details

#max(x, y) ⇒ Object


11
12
13
14
15
# File 'lib/alf/renderer/text.rb', line 11

def max(x, y)
  return y if x.nil?
  return x if y.nil?
  x > y ? x : y
end