Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/jenncad/features/multiples_of.rb
Instance Method Summary collapse
Instance Method Details
#of(part = nil, anchor = :top_face) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/jenncad/features/multiples_of.rb', line 2 def of(part=nil, anchor=:top_face) return nil if part.nil? num = self - 1 res = part.fix num.times do res += part.movea(anchor) end res end |