Module: Dieses::Application::Mixins::Scribes::ClassMethods

Defined in:
lib/dieses/application/mixins/scribes.rb

Instance Method Summary collapse

Instance Method Details

#variate_scribes(unit:, ratio: [1/1r], gap: [0]) ⇒ Object



27
28
29
30
31
32
# File 'lib/dieses/application/mixins/scribes.rb', line 27

def variate_scribes(unit:, ratio: [1/1r], gap: [0])
  variate(unit: unit, ratio: ratio, gap: gap) do
    self.name = :"#{self.unit}#{self.ratio.to_s.delete('/')}#{self.gap}"
    self.desc = "#{self.unit} mm x-height with #{self.ratio} ratio and #{self.gap} mm gap"
  end
end