diff options
| author | Randy Morgan <[email protected]> | 2012-10-09 21:50:25 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-10-09 21:50:25 +0900 |
| commit | be95b7eaa72cd7007bc0fef22d0c3ea4fa3c3553 (patch) | |
| tree | 4553f0ec8767385961e08162ebfa65eb96c77420 /lib/axlsx/drawing/d_lbls.rb | |
| parent | f0bc5f17ddafd8172646a04bbbc0d3b958c0205f (diff) | |
| download | caxlsx-be95b7eaa72cd7007bc0fef22d0c3ea4fa3c3553.tar.gz caxlsx-be95b7eaa72cd7007bc0fef22d0c3ea4fa3c3553.zip | |
extracted accessor methods into module that is scope because polluting Module or Class is just not cool
Diffstat (limited to 'lib/axlsx/drawing/d_lbls.rb')
| -rw-r--r-- | lib/axlsx/drawing/d_lbls.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/axlsx/drawing/d_lbls.rb b/lib/axlsx/drawing/d_lbls.rb index cb0f9ad5..2074b85d 100644 --- a/lib/axlsx/drawing/d_lbls.rb +++ b/lib/axlsx/drawing/d_lbls.rb @@ -2,11 +2,12 @@ module Axlsx # There are more elements in the dLbls spec that allow for # customizations and formatting. For now, I am just implementing the # basics. - #The DLbls class manages serialization of data labels # showLeaderLines and leaderLines are not currently implemented class DLbls + include Axlsx::Accessors + # creates a new DLbls object def initialize(chart_type, options={}) raise ArgumentError, 'chart_type must inherit from Chart' unless chart_type.superclass == Chart |
