Module: Dieses::Application::Mixins::Lines::ClassMethods
- Defined in:
- lib/dieses/application/mixins/lines.rb
Defined Under Namespace
Instance Method Summary collapse
- #cline(*tags, angle:, style: EMPTY_HASH) ⇒ Object
- #hline(*tags, after: Undefined, style: EMPTY_HASH) ⇒ Object
- #vline(*tags, after: Undefined, style: EMPTY_HASH) ⇒ Object
Instance Method Details
#cline(*tags, angle:, style: EMPTY_HASH) ⇒ Object
20 21 22 |
# File 'lib/dieses/application/mixins/lines.rb', line 20 def cline(*, angle:, style: EMPTY_HASH) (param.clines ||= []) << Cross.new(tags: , angle: angle, style: style) end |
#hline(*tags, after: Undefined, style: EMPTY_HASH) ⇒ Object
10 11 12 |
# File 'lib/dieses/application/mixins/lines.rb', line 10 def hline(*, after: Undefined, style: EMPTY_HASH) (param.hlines ||= []) << Line.new(tags: , after: after, style: style) end |
#vline(*tags, after: Undefined, style: EMPTY_HASH) ⇒ Object
14 15 16 |
# File 'lib/dieses/application/mixins/lines.rb', line 14 def vline(*, after: Undefined, style: EMPTY_HASH) (param.vlines ||= []) << Line.new(tags: , after: after, style: style) end |