Module: ExaltedMath::Maths::Max2

Defined in:
lib/exalted_math/math.rb

Instance Method Summary collapse

Instance Method Details

#astObject



534
535
536
# File 'lib/exalted_math/math.rb', line 534

def ast
  Node::Maximum.new(list.asts, count)
end

#countObject



526
527
528
529
530
531
532
# File 'lib/exalted_math/math.rb', line 526

def count
  if num.elements
    num.elements.detect { |e| e.respond_to?(:value) }.value
  else
    1
  end
end