Module: Dieses::Application::Mixins::Lines::InstanceMethods
- Defined in:
- lib/dieses/application/mixins/lines.rb
Instance Method Summary collapse
Instance Method Details
#lines(unit: Undefined, multiple: Undefined) ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/dieses/application/mixins/lines.rb', line 26 def lines(unit: Undefined, multiple: Undefined) step_lines(param) unit = Undefined.default(unit, param.unit) multiple = Undefined.default(multiple, param.multiple || param.hlines&.map(&:step)&.sum) draw_hlines unit: unit, multiple: multiple draw_vlines unit: unit, multiple: multiple draw_clines unit: unit, multiple: multiple end |