Module: Exalted::Maths::Min2

Defined in:
lib/exalted_math/math.rb

Instance Method Summary collapse

Instance Method Details

#astObject



679
680
681
# File 'lib/exalted_math/math.rb', line 679

def ast
  Ast.min( count, list.asts )
end

#countObject



672
673
674
675
676
677
678
# File 'lib/exalted_math/math.rb', line 672

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