Method: Axlsx::DLbls#initialize
- Defined in:
- lib/axlsx/drawing/d_lbls.rb
#initialize(chart_type, options = {}) ⇒ DLbls
creates a new DLbls object
12 13 14 15 16 17 |
# File 'lib/axlsx/drawing/d_lbls.rb', line 12 def initialize(chart_type, ={}) raise ArgumentError, 'chart_type must inherit from Chart' unless [Chart, LineChart].include?(chart_type.superclass) @chart_type = chart_type initialize_defaults end |