summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet/fill.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2011-11-26 13:20:57 +0900
committerRandy Morgan <[email protected]>2011-11-26 13:20:57 +0900
commit11303a4d6664d9a7ff7bc408035d2ab70378a375 (patch)
tree51c675ae3ab8cd6c1afd7087145261b1eb2ec54c /lib/axlsx/stylesheet/fill.rb
parent044afe5a35db42cefce4f18a0fecc3da90cab1b5 (diff)
downloadcaxlsx-11303a4d6664d9a7ff7bc408035d2ab70378a375.tar.gz
caxlsx-11303a4d6664d9a7ff7bc408035d2ab70378a375.zip
adding in support for ruby 1.9.3
release version 1.0.9
Diffstat (limited to 'lib/axlsx/stylesheet/fill.rb')
-rw-r--r--lib/axlsx/stylesheet/fill.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/axlsx/stylesheet/fill.rb b/lib/axlsx/stylesheet/fill.rb
index b7477a88..ad313679 100644
--- a/lib/axlsx/stylesheet/fill.rb
+++ b/lib/axlsx/stylesheet/fill.rb
@@ -8,7 +8,7 @@ module Axlsx
# The type of fill
# @return [PatternFill, GradientFill]
- attr_accessor :fill_type
+ attr_reader :fill_type
# Creates a new Fill object
# @param [PatternFill, GradientFill] fill_type
@@ -24,6 +24,7 @@ module Axlsx
xml.fill { @fill_type.to_xml(xml) }
end
+ # @see fill_type
def fill_type=(v) DataTypeValidator.validate "Fill.fill_type", [PatternFill, GradientFill], v; @fill_type = v; end