diff options
| author | Jan-Hendrik Hühne <[email protected]> | 2012-06-06 17:47:50 +0200 |
|---|---|---|
| committer | Jan-Hendrik Hühne <[email protected]> | 2012-06-06 17:47:50 +0200 |
| commit | f2f00ef663f4b074b68ded459c3882cf784484bb (patch) | |
| tree | b135047ba8c107f8b62cb8e0a2371236944f099c /lib | |
| parent | 264c9e55e0b72db341f85588d9ed1481a7cf8888 (diff) | |
| download | caxlsx-f2f00ef663f4b074b68ded459c3882cf784484bb.tar.gz caxlsx-f2f00ef663f4b074b68ded459c3882cf784484bb.zip | |
Validator rename
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/util/validators.rb | 2 | ||||
| -rw-r--r-- | lib/axlsx/workbook/worksheet/pane.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/util/validators.rb b/lib/axlsx/util/validators.rb index f76c57ba..0f4f0dce 100644 --- a/lib/axlsx/util/validators.rb +++ b/lib/axlsx/util/validators.rb @@ -252,7 +252,7 @@ module Axlsx # Requires that the value is a valid active pane type. # valid types must be one of bottom_left, bottom_right, top_left, top_right # @param [Any] v The value validated - def self.validate_active_pane_type(v) + def self.validate_pane_type(v) RestrictionValidator.validate :active_pane_type, [:bottom_left, :bottom_right, :top_left, :top_right], v end diff --git a/lib/axlsx/workbook/worksheet/pane.rb b/lib/axlsx/workbook/worksheet/pane.rb index bf632c10..f658bc99 100644 --- a/lib/axlsx/workbook/worksheet/pane.rb +++ b/lib/axlsx/workbook/worksheet/pane.rb @@ -101,7 +101,7 @@ module Axlsx # @see active_pane - def active_pane=(v); Axlsx::validate_active_pane_type(v); @active_pane = v end + def active_pane=(v); Axlsx::validate_pane_type(v); @active_pane = v end # @see state |
