Class: DrawioDsl::Configuration::Connector::Arrow

Inherits:
Object
  • Object
show all
Defined in:
lib/drawio_dsl/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image, fill) ⇒ Arrow

Returns a new instance of Arrow.



237
238
239
240
# File 'lib/drawio_dsl/configuration.rb', line 237

def initialize(image, fill)
  @image = image
  @fill = fill
end

Instance Attribute Details

#fillObject (readonly)

Returns the value of attribute fill.



235
236
237
# File 'lib/drawio_dsl/configuration.rb', line 235

def fill
  @fill
end

#imageObject (readonly)

Returns the value of attribute image.



234
235
236
# File 'lib/drawio_dsl/configuration.rb', line 234

def image
  @image
end

Instance Method Details

#end_modifiersObject



246
247
248
# File 'lib/drawio_dsl/configuration.rb', line 246

def end_modifiers
  "endArrow=#{image};endFill=#{fill}"
end

#start_modifiersObject



242
243
244
# File 'lib/drawio_dsl/configuration.rb', line 242

def start_modifiers
  "startArrow=#{image};startFill=#{fill}"
end