Module: ExaltedMath::Maths::Min2
- Defined in:
- lib/exalted_math/math.rb
Instance Method Summary collapse
Instance Method Details
#ast ⇒ Object
679 680 681 |
# File 'lib/exalted_math/math.rb', line 679 def ast Node::Minimum.new(list.asts, count) end |
#count ⇒ Object
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 |