Module: Dieses::Application::Mixins::Lines::ClassMethods

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

Defined Under Namespace

Classes: Cross, Line

Instance Method Summary collapse

Instance Method Details

#cline(*tags, angle:, style: EMPTY_HASH) ⇒ Object



20
21
22
# File 'lib/dieses/application/mixins/lines.rb', line 20

def cline(*tags, angle:, style: EMPTY_HASH)
  (param.clines ||= []) << Cross.new(tags: 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(*tags, after: Undefined, style: EMPTY_HASH)
  (param.hlines ||= []) << Line.new(tags: 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(*tags, after: Undefined, style: EMPTY_HASH)
  (param.vlines ||= []) << Line.new(tags: tags, after: after, style: style)
end