diff options
| author | Scott <[email protected]> | 2012-04-06 07:27:29 -0400 |
|---|---|---|
| committer | Scott <[email protected]> | 2012-04-06 07:27:29 -0400 |
| commit | 89f5b16ae10295e93cd976bc79eec3b8e5902cb8 (patch) | |
| tree | a62f4b690c4c30fc9a2d207876895bfe07d3ec29 /lib | |
| parent | 71859909ed45618cd57ec82bb6781f062d188b6d (diff) | |
| download | caxlsx-89f5b16ae10295e93cd976bc79eec3b8e5902cb8.tar.gz caxlsx-89f5b16ae10295e93cd976bc79eec3b8e5902cb8.zip | |
Add edges() to border to return list of applied edges
Add border edge tests to styles spec
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/stylesheet/border.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/axlsx/stylesheet/border.rb b/lib/axlsx/stylesheet/border.rb index d23e5476..60b89b6f 100644 --- a/lib/axlsx/stylesheet/border.rb +++ b/lib/axlsx/stylesheet/border.rb @@ -35,6 +35,13 @@ module Axlsx end end + # Return list of edge names applied to this border + def edges + edges = [] + @prs.each {|pr| edges << pr.name} + edges + end + # @see diagonalUp def diagonalUp=(v) Axlsx::validate_boolean v; @diagonalUp = v end # @see diagonalDown |
